JBoss Community

Re: AS 7 Persistence Provider Problem

created by Charles Miller in JBoss AS7 Development - View the full discussion

Thank you.

 

-- This is what I've added to my local stubbed out eclipselink related code so far. 

 

Within the package "eclipelink" within the "SessionFactoryTestCase"  this is the value of the "persistence_xml"...

 

    private static final String persistence_xml =  

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

    "<persistence version=\"1.0\" 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_1_0.xsd\">" +

              "<persistence-unit name=\"mypc\" transaction-type=\"JTA\">" +

                        "<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>" +

                        "<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>" +

                        //<mapping-file>META-INF/orm.xml</mapping-file>

                        "<properties>" +

                        //          <!-- <property name="eclipselink.logging.level" value="FINE"/> -->

                        //          <property name="eclipselink.logging.level" value="SEVERE"/>

                                  "<property name=\"eclipselink.target-server\" value=\"JBoss\"/>" +

                                  "<property name=\"eclipselink.weaving\" value=\"static\"/>" +

                        "<property name="eclipselink.target-database" value="Oracle"/>" +

            //          <property name="eclipselink.jdbc.cache-statements" value="true"/>

            //          <property name="eclipselink.jdbc.cache-statements.size" value="0"/>

            //          <property name="eclipselink.jdbc.native-sql" value="true" />

            //          <property name="eclipselink.jdbc.batch-writing" value="None"/>

            //          <property name="eclipselink.jdbc.driver" value="oracle.jdbc.OracleDriver"/>

                      "<property name=\"eclipselink.ddl-generation.output-mode\" value=\"database\"/>" +

                        "</properties>" +

        "</persistence-unit>" +

    "</persistence>";

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community