]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
added persistence.xml with CREATE mode
authorRoland Haeder <roland@mxchange.org>
Wed, 14 Oct 2015 06:35:59 +0000 (08:35 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 14 Oct 2015 06:35:59 +0000 (08:35 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

PizzaService-ejb/lib/eclipselink/eclipselink.jar [new file with mode: 0644]
PizzaService-ejb/lib/eclipselink/javax.persistence-2.1.0-doc.zip [new file with mode: 0644]
PizzaService-ejb/lib/eclipselink/javax.persistence_2.1.0.v201304241213.jar [new file with mode: 0644]
PizzaService-ejb/lib/eclipselink/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar [new file with mode: 0644]
PizzaService-ejb/lib/eclipselinkmodelgen/org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar [new file with mode: 0644]
PizzaService-ejb/lib/nblibraries.properties
PizzaService-ejb/nbproject/project.properties
PizzaService-ejb/src/conf/persistence.xml [new file with mode: 0644]

diff --git a/PizzaService-ejb/lib/eclipselink/eclipselink.jar b/PizzaService-ejb/lib/eclipselink/eclipselink.jar
new file mode 100644 (file)
index 0000000..2b0a810
Binary files /dev/null and b/PizzaService-ejb/lib/eclipselink/eclipselink.jar differ
diff --git a/PizzaService-ejb/lib/eclipselink/javax.persistence-2.1.0-doc.zip b/PizzaService-ejb/lib/eclipselink/javax.persistence-2.1.0-doc.zip
new file mode 100644 (file)
index 0000000..fd55e6e
Binary files /dev/null and b/PizzaService-ejb/lib/eclipselink/javax.persistence-2.1.0-doc.zip differ
diff --git a/PizzaService-ejb/lib/eclipselink/javax.persistence_2.1.0.v201304241213.jar b/PizzaService-ejb/lib/eclipselink/javax.persistence_2.1.0.v201304241213.jar
new file mode 100644 (file)
index 0000000..841d2e1
Binary files /dev/null and b/PizzaService-ejb/lib/eclipselink/javax.persistence_2.1.0.v201304241213.jar differ
diff --git a/PizzaService-ejb/lib/eclipselink/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar b/PizzaService-ejb/lib/eclipselink/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar
new file mode 100644 (file)
index 0000000..001316b
Binary files /dev/null and b/PizzaService-ejb/lib/eclipselink/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar differ
diff --git a/PizzaService-ejb/lib/eclipselinkmodelgen/org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar b/PizzaService-ejb/lib/eclipselinkmodelgen/org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar
new file mode 100644 (file)
index 0000000..0135c65
Binary files /dev/null and b/PizzaService-ejb/lib/eclipselinkmodelgen/org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar differ
index 6d0afb59d64978f1c42b37eda93de4d6acaa674c..cc80b9d95f98a63e3e3be834d1c05778957a30e5 100644 (file)
@@ -2,3 +2,15 @@ libs.CopyLibs.classpath=\
     ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
 libs.CopyLibs.displayName=CopyLibs Task
 libs.CopyLibs.prop-version=2.0
+libs.eclipselink.classpath=\
+    ${base}/eclipselink/eclipselink.jar;\
+    ${base}/eclipselink/javax.persistence_2.1.0.v201304241213.jar;\
+    ${base}/eclipselink/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar
+libs.eclipselink.displayName=EclipseLink (JPA 2.1)
+libs.eclipselink.javadoc=\
+    ${base}/eclipselink/javax.persistence-2.1.0-doc.zip
+libs.eclipselink.prop-maven-dependencies=\n                org.eclipse.persistence:eclipselink:2.5.2:jar\n            
+libs.eclipselinkmodelgen.classpath=\
+    ${base}/eclipselinkmodelgen/org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar
+libs.eclipselinkmodelgen.displayName=EclipseLink-ModelGen (JPA 2.1)
+libs.eclipselinkmodelgen.prop-maven-dependencies=org.eclipse.persistence:org.eclipse.persistence.jpa.modelgen.processor:2.5.2:jar
index 347c750e701bac4120d8bd451803f696bd7a4bd5..9f9776f5b85cf4db47b2983f5ae0aea2ec230625 100644 (file)
@@ -1,5 +1,6 @@
 annotation.processing.enabled=true
 annotation.processing.enabled.in.editor=true
+annotation.processing.processor.options=-Aeclipselink.canonicalmodel.use_static_factory=false
 annotation.processing.processors.list=
 annotation.processing.run.all.processors=true
 annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
@@ -53,7 +54,9 @@ javac.classpath=\
 javac.debug=true
 javac.deprecation=true
 javac.processorpath=\
-    ${javac.classpath}
+    ${javac.classpath}:\
+    ${libs.eclipselink.classpath}:\
+    ${libs.eclipselinkmodelgen.classpath}
 javac.source=1.7
 javac.target=1.7
 javac.test.classpath=\
diff --git a/PizzaService-ejb/src/conf/persistence.xml b/PizzaService-ejb/src/conf/persistence.xml
new file mode 100644 (file)
index 0000000..fe0161d
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
+  <persistence-unit name="PizzaService-ejbPU" transaction-type="JTA">
+    <jta-data-source>jdbc/shop</jta-data-source>
+    <class>org.mxchange.jcountry.data.CountryData</class>
+    <class>org.mxchange.jshopcore.model.basket.items.BasketItem</class>
+    <class>org.mxchange.jshopcore.model.category.ProductCategory</class>
+    <class>org.mxchange.jshopcore.model.customer.ShopCustomer</class>
+    <class>org.mxchange.jshopcore.model.order.ShopOrder</class>
+    <class>org.mxchange.jshopcore.model.order.items.OrderItem</class>
+    <class>org.mxchange.jshopcore.model.product.GenericProduct</class>
+    <exclude-unlisted-classes>false</exclude-unlisted-classes>
+    <properties>
+      <property name="javax.persistence.schema-generation.database.action" value="create"/>
+    </properties>
+  </persistence-unit>
+</persistence>