I have to configure several persistence units in persistence.xml. But it is possible to configure a default persistence unit?
I would like to avoid to systematically fill in the unit-name of the @PersistenceContext annotation. For example :
// Use the default persistence unit
// Use the persistence unit named "specificPersistenceUnit"
Thank you in advance,
I like the idea, it would be nice if you could flag one of the persistence unit definitions as the default (via a property setting). There is no way currently to do this but definitely worth considering.
Any volunteers to help work on this idea?
|Retrieving data ...|