It's important to know what the persistence unit root is. The persistence unit root is the JAR or directory that contains the META-INF directory where the persistence.xml file is located.
So I'm with you on both examples: I think it needs to be ../lib/warEntities.jar for the first and in the second example, in which the JAR is the root, I believe it needs to be ../../lib/earEntities.jar
Can anyone shed a light on this please?
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
create, convert, edit or print DOC and DOCX in Java