JBoss Community

Re: persistence unit Exception while publishing (Jboss AS7 and OpenJPA)

created by Ido Barash in Beginner's Corner - View the full discussion

This is my persistence.xml file...

 

<?xml version="1.0" encoding="UTF-8"?>

<persistence xmlns="http://java.sun.com/xml/ns/persistence"

             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"

             version="2.0">

          <persistence-unit name="advisor-domain-pu" transaction-type="JTA">

                    <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>

                    <jta-data-source>jdbc/AdvisorSkeletonDataSource</jta-data-source>

 

                    <properties>

                              <property name="openjpa.TransactionMode" value="managed" />

                              <property name="openjpa.ConnectionFactoryMode" value="managed" />

   <property name="openjpa.jdbc.EagerFetchMode" value="join" />

                              <property name="openjpa.jdbc.SubclassFetchMode" value="join" />

                    </properties>

 

          </persistence-unit>

 

</persistence>

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community