Define Entity Class at Runtime Instead Of Only In Persistence.xml

93 Views Asked by At

I see that this question has been asked before, but I haven't seen any answered in a number of years. The answers from previous years which I was able to find were not adequate.

Is there a way to load/set/define entity classes for a persistence unit at runtime either in addition to, or instead of defining them in the persistence.xml file?

I'm using Guice as my framework, so if there is an answer specific to Guice, all the better. I'm not interested in any solutions involving Spring unless they could be used outside of the Spring framework.

0

There are 0 best solutions below