> There is no org.apache.openjpa.persistence.PersistenceProviderImpl class in OpenJPA 2.1, however. What is the name of the jar that you are using, and where did it come from? org.apache.openjpa.persistence.PersistenceProviderImpl is the correct provider.
On Mon, May 16, 2011 at 11:16 AM, dwschulze <[email protected]>wrote: > The docs for OpenJPA 2.1 show the persistence.xml file below. There is no > org.apache.openjpa.persistence.PersistenceProviderImpl class in OpenJPA > 2.1, > however. > > What is the correct PersistenceProvider to use, and what is the correct > persistence.xml for OpoenJPA 2.1? > > > http://openjpa.apache.org/builds/2.1.0/apache-openjpa-2.1.0/docs/manual/main.html > > <?xml version="1.0"?> > <persistence version="1.0"> > <persistence-unit name="openjpa"> > > <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> > <class>tutorial.Animal</class> > <class>tutorial.Dog</class> > <class>tutorial.Rabbit</class> > <class>tutorial.Snake</class> > <properties> > <property name="openjpa.ConnectionURL" > value="jdbc:hsqldb:tutorial_database"/> > <property name="openjpa.ConnectionDriverName" > value="org.hsqldb.jdbcDriver"/> > <property name="openjpa.ConnectionUserName" value="sa"/> > <property name="openjpa.ConnectionPassword" value=""/> > <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/> > </properties> > </persistence-unit> > </persistence> > > -- *Rick Curtis*
