Skip to content

orm.xml should be recognized by default if using JPA [SPR-11234] #15859

Closed
@spring-projects-issues

Description

@spring-projects-issues

Hantsy Bai opened SPR-11234 and commented

I used Hibernate as JPA provider and registered a LocalContainerEntityManagerFactoryBean without a persistence.xml.

But when I tried to resgiter a global audit entity listener in orm.xml file, it did not work.

I have to create a empty persistence.xml to make it work.

I think Spring should load the orm.xml by default if JPA is enabled, both with persistence.xml and without persistence.xml.

The related codes is hosted on my github.com

https://github.com/hantsy/spring-sandbox/tree/master/data-audit


Affects: 3.2.6

Issue Links:

Referenced from: commits 4ae893e

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions