The persistence.xml is under src/main/resources/META-INF/persistence.xml
and the entities are in sources packages under src/main/java.

My persistence.xml is:

<persistence xmlns="http://java.sun.com/xml/ns/persistence"; version="1.0">
  <persistence-unit name="openjpa">
   
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
    <properties>
      <property name="openjpa.ConnectionURL"
value="jdbc:h2:tcp://localhost/~/H2/MyTest"/>
      <property name="openjpa.ConnectionDriverName" value="org.h2.Driver"/>
      <property name="openjpa.ConnectionUserName" value="sa"/>
      <property name="openjpa.ConnectionPassword" value=""/>
      <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/>
    </properties>
  </persistence-unit>
</persistence>
-- 
View this message in context: 
http://openjpa.208410.n2.nabble.com/Generation-of-Canonical-MetaModel-Classes-with-Maven-tp5424291p5428491.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to