We are developing a web application with Spring, Hibernate and Maven in a very modular fashion. There are core projects defining data access and view specific stuff, then th
The classes will be in the class loader.
This so answer Scanning Java annotations at runtime.
Is that what you want? To scan for @Entity annotated and add them to a PersistenceUnit?
@Entity
PersistenceUnit
Regards.