openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: No PersistenceProviderImpl in OpenJPA 2.1 - error in persistence.xml documentation
Date Tue, 17 May 2011 13:20:53 GMT
> 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 <dean_w_schulze@yahoo.com>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*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message