In my project i have a persistence bundle which will perform the create/update/delete operations and multiple model bundles.
persistence bundle:
- PersistenceService.java - Exposed as a service.
- PersistenceServiceImpl.java
- persistence.xml - contains: a: jta-data-source details b: dialect properties.
Now i have multiple model bundles where i have used annotations for declaring entities.
My query is, how i can specify the different model bundles details in the above mentioned persistence bundle's persistence.xml. so that the i can maintain a single persistence.xml file and "PersistenceUnitInfo" will not be repeated.
is it possible? or is there any other best practices?