On Mar 3, 2006, at 11:39, Tore Halset wrote:
> PersistenceUnitInfo pui = new MockPersistenceUnitInfo();
> EntityManagerFactory emf = new CjpaEntityManagerFactory
> (pui);
> EntityManager em = emf.createEntityManager();
I think that stuff are supposed to be written like this:
EntityManagerFactory emf =
Persistence.createEntityManagerFactory("...");
However, this requires a META-INF/persistence.xml with the given
persistenceUnitName.
- Tore.
This archive was generated by hypermail 2.0.0 : Fri Mar 03 2006 - 07:11:06 EST