I am trying to get hibernate to scan package-info.java files so I can create package level annotations and not have to define annotations in every single entity. I found this post that mentioned how to do it:
Why would Hibernate ignore package-info.java?
The answers say add this:
<mapping package="com.foo.bar.thepackage">
To my hibernate config file. However, since I am only using annotations and using the LocalContainerEntityManagerFactoryBean I don't have an Hibernate XML file. How can I set this hibernate specific property using the jpa factory?
Thanks