I have a jar file that cares about all persistence logic. This jar file contains persistence.xml file with all configurations needed. My war uses this jar file as dependency but should not know how it's persisted in database. I have some questions:
1) My WAR have @Entity classes; Do I need to create a persistence.xml in "resources/META-INF"? I already have this in the JAR file.
2) If I need to create another persistence.xml in the WAR, how can I inherite this persistence.xml from the jar-file?