Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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