From: Roland Haeder Date: Wed, 14 Oct 2015 06:35:59 +0000 (+0200) Subject: added persistence.xml with CREATE mode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d6d8c3f6f1d51bd6d7d3729a04422aa608e1a481;p=pizzaservice.git added persistence.xml with CREATE mode Signed-off-by:Roland Häder --- diff --git a/PizzaService-ejb/lib/eclipselink/eclipselink.jar b/PizzaService-ejb/lib/eclipselink/eclipselink.jar new file mode 100644 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 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 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 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 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 diff --git a/PizzaService-ejb/lib/nblibraries.properties b/PizzaService-ejb/lib/nblibraries.properties index 6d0afb5..cc80b9d 100644 --- a/PizzaService-ejb/lib/nblibraries.properties +++ b/PizzaService-ejb/lib/nblibraries.properties @@ -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 diff --git a/PizzaService-ejb/nbproject/project.properties b/PizzaService-ejb/nbproject/project.properties index 347c750..9f9776f 100644 --- a/PizzaService-ejb/nbproject/project.properties +++ b/PizzaService-ejb/nbproject/project.properties @@ -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 index 0000000..fe0161d --- /dev/null +++ b/PizzaService-ejb/src/conf/persistence.xml @@ -0,0 +1,17 @@ + + + + jdbc/shop + org.mxchange.jcountry.data.CountryData + org.mxchange.jshopcore.model.basket.items.BasketItem + org.mxchange.jshopcore.model.category.ProductCategory + org.mxchange.jshopcore.model.customer.ShopCustomer + org.mxchange.jshopcore.model.order.ShopOrder + org.mxchange.jshopcore.model.order.items.OrderItem + org.mxchange.jshopcore.model.product.GenericProduct + false + + + + +