You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AnnotationSessionFactoryBean packagesToScan does not scan for annotations in package's package-info.java file [SPR-7748] #12404
If I use the packagesToScan property of AnnotationSessionFactoryBean, classes are scanned for annotations, but the package itself is not scanned (i.e. package-info.java file is not considered).
I guess it would be better to include the package-info.java file too as the "packagesToScan" name really makes one think that it will scan the packages as a whole.
Note also the contrast with the "annotatedPackages" and "annotatedClasses" name, where it's clear that one will only scan the package annotations and the other only the package classes annotation.
As of 3.2.2, "packagesToScan" detects package-info classes as well and passes them to Hibernate's addPackage method. Sorry for not getting back to this issue earlier; it got lost in the waiting-for-triage flood :-(
Activity
spring-projects-issues commentedon Feb 13, 2013
Juergen Hoeller commented
As of 3.2.2, "packagesToScan" detects package-info classes as well and passes them to Hibernate's addPackage method. Sorry for not getting back to this issue earlier; it got lost in the waiting-for-triage flood :-(
Juergen