|add list of entities [message #1182843]
||Tue, 12 November 2013 07:58
| f bratic
Registered: November 2013
i was searching the forum now for hours, but couldn' really find an answer.
Image I have two java (maven) projects.
ProjectB is included in ProjectA as dependency.
In ProjectA I created some entities with all the necessary Annotations
e.g. my classes are
now in ProjectB I have the creation of entityManager with
em = Persistence.createEntityManagerFactory(persistenceUnit, properties)
i would like to add to this new em a list of classes.
How can I programmatically (ergo not through persistence.xml) give the EntityManager a list of classes (entities) that he should use.
thank you very much for your help
if I am not clear ... please tell me ...
and I will try to explain it in a different way ...
Powered by FUDForum
. Page generated in 0.05225 seconds