Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalContainerEntityManagerFactoryBean packagesToScan doesn't honor annotated packages [SPR-8921] #13561

Closed
spring-projects-issues opened this issue Dec 14, 2011 · 1 comment
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: declined A suggestion or change that we don't feel we should currently apply type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Dec 14, 2011

Stéphane Landelle opened SPR-8921 and commented

Hibernate can make use of jdk5 annotated packages, for example declaring custom types.
These are correctly bound when using LocalContainerEntityManagerFactoryBean AND a persistence.xml file, but not when using only packagesToScan.


Affects: 3.1 GA

3 votes, 6 watchers

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Jan 24, 2013

Juergen Hoeller commented

I'm afraid there isn't much we can do about this, at least not through general JPA contracts: PersistenceUnitInfo only allows for exposing annotated classes but not for exposing annotated packages to the persistence provider.

There might be some way to expose those to Hibernate specifically but given the straightforward alternative - keep using standard JPA persistence.xml - and the historic instability of Hibernate SPIs, we're not going there at this point.

Juergen

@spring-projects-issues spring-projects-issues added status: declined A suggestion or change that we don't feel we should currently apply in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: declined A suggestion or change that we don't feel we should currently apply type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants