Is there a way to create an EntityManagerFactory without a duration unit ? Can you provide all the necessary properties to create a factory entity manager? I need to create an EntityManagerFactory from user-defined values ββat runtime. Updating persistence.xml and recompiling is not an option.
I am currently using dynamic eclipse persistence , so I need to create an EntityManagerFactory without a specific save unit. I have groups of runtime objects that need to map one group of objects to different databases at runtime, and for this group of entities for continuous operation there is no record of the unit of measure for duration.
Any idea on how to do this is more than welcome!
source
share