[jboss-dev-forums] [JBoss AS7 Development] - Re: AS 7 Persistence Provider Problem

Charles Miller do-not-reply at jboss.com
Thu Sep 29 11:49:37 EDT 2011


Charles Miller [http://community.jboss.org/people/charleswmiller] created the discussion

"Re: AS 7 Persistence Provider Problem"

To view the discussion, visit: http://community.jboss.org/message/629374#629374

--------------------------------------------------------------
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 http://java.sun.com/xml/ns/persistence\" " +
              "xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance\" " +
              "xsi:schemaLocation=\" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence  http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd 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
[http://community.jboss.org/message/629374#629374]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110929/71c8e151/attachment.html 


More information about the jboss-dev-forums mailing list