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
The text was updated successfully, but these errors were encountered:
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.