Hi Erwan,
What do you have in persistence.xml?
It should contain something like this :
persistence xmlns=http://java.sun.com/xml/ns/persistence;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
version=1.0
persistence-unit name=teamplay_test
. . .
/persistence-unit
Note :
I'm using a persistence.xml for single persitence unit
creation, and this
test works fine. I've had a dive into the source code, and found the
provider is lookuped and found by the glassfish persistence
implementation
class. The exception is raised on the open jpa side, and I
Thank you for your time Patrik,
Actually the persistence.xml used in the META-INF jar in the CP points to
another persistence unit name.
The thing is -and I may be mistaking about this practice- I want to
programmatically my own persistence units, based on different name, at run
time, and I
: Friday, April 06, 2007 9:50 AM
To: open-jpa-dev@incubator.apache.org
Subject: Re: Programmatical EntityManagerFactory init
Thank you for your time Patrik,
Actually the persistence.xml used in the META-INF jar in the
CP points to
another persistence unit name.
The thing is -and I may
, 2007 10:08 AM
To: open-jpa-dev@incubator.apache.org
Subject: RE: Programmatical EntityManagerFactory init
Could you (or anyone else) confirm this last point?
Your are correct -- when using the Persistence class for
bootstrapping,
you must provide a name of a persistence unit defined
, please immediately return this
by email and then delete it.
-Original Message-
From: Patrick Linskey
Sent: Friday, April 06, 2007 10:08 AM
To: open-jpa-dev@incubator.apache.org
Subject: RE: Programmatical EntityManagerFactory init
Could you (or anyone else) confirm this last point