How to work with multiple persistence units
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   avihaimar_marchiano
Posted On:   Thursday, May 24, 2007 03:44 PM

Hey,

I have a generic DAO.
The DAO is a stateless and in the DAO the persistence context is injected:

@PersistenceContext
public void setEntityManager(EntityManager em) {
this.em = em;
}

The problem is that I have 5 schemas.
Each schema has a persistence unit, so I can’t use in the default persistence unit.

How you guys work in case that you have multiple schemas.

Thank you

About | Sitemap | Contact