Source code file content

Revision: 496

Linux shell
» Project Revision History

» Checkout URL

src / training / trunk / Lab05-JPA / src / main / resources / META-INF / persistence.xml

Size: 1817 bytes, 1 line
<?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="trainingPU" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <class>org.beginningee6.training.Book</class>
        <class>org.beginningee6.training.CD</class>
        <class>org.beginningee6.training.Chapter</class>
        <class>org.beginningee6.training.Item</class>
        <class>org.beginningee6.training.Track</class>
        <properties>
            <!-- Embedded mode -->
            <!--<property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>-->
            <!--<property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:lab05DB;create=true"/>-->
            <!-- Client Server mode -->
            <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
            <property name="javax.persistence.jdbc.url" value="jdbc:derby://localhost:1527/lab05DB;create=true"/>
            <property name="javax.persistence.jdbc.user" value="APP"/>
            <property name="javax.persistence.jdbc.password" value="APP"/>

            <property name="eclipselink.logging.level" value="INFO"/>
            <property name="eclipselink.target-database" value="DERBY"/>
            <!--<property name="eclipselink.ddl-generation" value="create-tables"/>-->
            <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
        </properties>
    </persistence-unit>
</persistence>


  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2014, Oracle Corporation and/or its affiliates
(revision 20150226.965aeb8)
 
 
Close
loading
Please Confirm
Close