Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2013-11-03 16:48:24 -0500
committerMartin Taal2013-11-03 16:48:24 -0500
commitfd925ae0239b74fe2f1e1f2d6bfee8fa8896b2be (patch)
tree58b96e0a5a4372a85eeaf0b29478986419d537b7 /generator/org.eclipse.emf.texo.orm
parentb26a4547656ed33d901ae5d5e5857f01b0c97baa (diff)
downloadorg.eclipse.emf.texo-fd925ae0239b74fe2f1e1f2d6bfee8fa8896b2be.tar.gz
org.eclipse.emf.texo-fd925ae0239b74fe2f1e1f2d6bfee8fa8896b2be.tar.xz
org.eclipse.emf.texo-fd925ae0239b74fe2f1e1f2d6bfee8fa8896b2be.zip
Updated for Kepler
Diffstat (limited to 'generator/org.eclipse.emf.texo.orm')
-rw-r--r--generator/org.eclipse.emf.texo.orm/.classpath2
-rw-r--r--generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/template-persistence.xml47
2 files changed, 48 insertions, 1 deletions
diff --git a/generator/org.eclipse.emf.texo.orm/.classpath b/generator/org.eclipse.emf.texo.orm/.classpath
index 304e8618..64c5e31b 100644
--- a/generator/org.eclipse.emf.texo.orm/.classpath
+++ b/generator/org.eclipse.emf.texo.orm/.classpath
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/template-persistence.xml b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/template-persistence.xml
new file mode 100644
index 00000000..23aecf05
--- /dev/null
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/template-persistence.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence version="2.0"
+ 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">
+ <persistence-unit name="texo-orm-hsqldb">
+ <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
+ <mapping-file>META-INF/orm.xml</mapping-file>
+ <properties>
+ <property name="eclipselink.session.customizer" value="org.eclipse.emf.texo.test.TexoSessionCustomizer"/>
+ <property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.HSQLPlatform"/>
+ <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
+ <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:{dbname}"/>
+ <property name="javax.persistence.jdbc.user" value="sa"/>
+ <property name="javax.persistence.jdbc.password" value=""/>
+
+ <!-- EclipseLink should create the database schema automatically -->
+
+ <property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
+ <property name="eclipselink.ddl-generation.output-mode" value="database" />
+ <!-- property name="eclipselink.drop-ddl-jdbc-file-name" value="{dbname}-drop.sql"/>
+ <property name="eclipselink.create-ddl-jdbc-file-name" value="{dbname}-create.sql"/>
+ <property name="eclipselink.application-location" value="ddl/"/-->
+ <property name="eclipselink.logging.level" value="WARNING" />
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="texo-class-mysql">
+ <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
+{class}
+ <properties>
+ <property name="eclipselink.target-database" value="Mysql"/>
+ <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/>
+ <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/{dbname}"/>
+ <property name="javax.persistence.jdbc.user" value="root"/>
+ <property name="javax.persistence.jdbc.password" value="root"/>
+
+ <!-- EclipseLink should create the database schema automatically -->
+ <property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
+ <property name="eclipselink.ddl-generation.output-mode" value="database" />
+ <!-- property name="eclipselink.drop-ddl-jdbc-file-name" value="{dbname}-drop.sql"/>
+ <property name="eclipselink.create-ddl-jdbc-file-name" value="{dbname}-create.sql"/>
+ <property name="eclipselink.application-location" value="ddl/"/-->
+ <property name="eclipselink.logging.level" value="WARNING" />
+ </properties>
+ </persistence-unit>
+</persistence> \ No newline at end of file

Back to the top