Closed
Description
Sanjay Deshmukh opened SPR-10288 and commented
I tend to have package-level annotations on all of my packages that contain Hibernate-annotated classes. The biggest one is a @TypeDef
to persist joda-time DateTimes and LocalTimes. It would be nice to have a single property through which I can set both annotatedPackages and packagesToScan, rather than passing the same list to both.
Affects: 3.2.1
Attachments:
- AnnotationSessionFactoryBean.java (9.48 kB)
Issue Links:
- AnnotationSessionFactoryBean packagesToScan does not scan for annotations in package's package-info.java file [SPR-7748] #12404 AnnotationSessionFactoryBean packagesToScan does not scan for annotations in package's package-info.java file
- Hibernate Annotation scanner missing package-info.java [SPR-8589] #13233 Hibernate Annotation scanner missing package-info.java
- Propagate LCEMFB.packagesToScan to native PersistenceProvider to pick up annotated packages [SPR-10910] #15538 Propagate LCEMFB.packagesToScan to native PersistenceProvider to pick up annotated packages
Referenced from: commits 5334ac5