Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2011-11-01 18:12:35 +0000
committerMartin Taal2011-11-01 18:12:35 +0000
commit97842a213a338601aa158b3d9f995f464bb25681 (patch)
tree5b9a657ccdce9960b252f3bc8dcc09a2626bd711 /eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/META-INF/persistence.xml
parent709ec105b89258b5e6b27e57cb3deb177529c54c (diff)
downloadorg.eclipse.emf.teneo-97842a213a338601aa158b3d9f995f464bb25681.tar.gz
org.eclipse.emf.teneo-97842a213a338601aa158b3d9f995f464bb25681.tar.xz
org.eclipse.emf.teneo-97842a213a338601aa158b3d9f995f464bb25681.zip
New structure
Diffstat (limited to 'eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/META-INF/persistence.xml')
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/META-INF/persistence.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/META-INF/persistence.xml b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/META-INF/persistence.xml
new file mode 100755
index 000000000..1387b2145
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/META-INF/persistence.xml
@@ -0,0 +1,33 @@
+<?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