Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 1387b21454b0e8f9cb47a3e2f6e53460d48163d0 (plain) (tree)
































                                                                                                                                                                                                                                                       
<?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" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="library" transaction-type="RESOURCE_LOCAL">
        <properties>        
            <property name="eclipselink.session-name" value="library" />

            <property name="eclipselink.logging.level" value="FINE" />
            <property name="eclipselink.logging.timestamp" value="false" />
            <property name="eclipselink.logging.thread" value="false" />
            <property name="eclipselink.logging.session" value="false" />
            <property name="eclipselink.jdbc.bind-parameters" value="false"/>

            <!--property name="eclipselink.target-database" value="Derby"/>
            <property name="eclipselink.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
            <property name="eclipselink.jdbc.url" value="jdbc:derby:teneo;create=true"/-->

            <property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.HSQLPlatform"/>
            <property name="eclipselink.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
            <property name="eclipselink.jdbc.url" value="jdbc:hsqldb:mem:test"/>
         	<property name="eclipselink.jdbc.user" value="sa"/>
            <property name="eclipselink.jdbc.password" value=""/>
   
            <property name="eclipselink.session.customizer" value="org.eclipse.emf.teneo.eclipselink.EmfSessionCustomizer"/>
             
            <property name="eclipselink.jdbc.read-connections.min" value="1"/>
            <property name="eclipselink.jdbc.write-connections.min" value="1"/>
            <property name="eclipselink.ddl-generation.output-mode" value="database" />
            <!-- Uncomment to create database schema -->  
            <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
            <property name="eclipselink.ddl-generation.output-mode" value="database"/>
        </properties>
    </persistence-unit>
</persistence>

Back to the top