Joined: Thu Oct 13, 2011 2:12 am Posts: 3
|
I have this requirement to add entity classes to the persistence unit at runtime rather than specifying all of them in the persistence.xml. Can someone help me with the same?
I am aware that Hibernate has its own mechanism of doing the same using:
AnnotationConfiguration.addAnnotatedClass(Class), etc.
But the solution to programmatically add entity classes / configuration files at runtime to the persistence unit should not be specific to a JPA implementation.
|
|