From: Roland Haeder Date: Wed, 2 Mar 2016 19:25:34 +0000 (+0100) Subject: added persitence unit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a6c8ece6cba3f174b3816e4dfd362c976464e604;p=jjobs-ejb.git added persitence unit: - added required jars for persisting private and business contacts - added necessary dependencies - added persistence.xml with own JDBC resource --- diff --git a/lib/jcontacts-business-core b/lib/jcontacts-business-core new file mode 160000 index 0000000..84f67c3 --- /dev/null +++ b/lib/jcontacts-business-core @@ -0,0 +1 @@ +Subproject commit 84f67c320ba8ebbff4f4bea4766d66997dea7360 diff --git a/lib/jcontacts-business-core.jar b/lib/jcontacts-business-core.jar new file mode 100644 index 0000000..edb1f11 Binary files /dev/null and b/lib/jcontacts-business-core.jar differ diff --git a/lib/jcontacts-core.jar b/lib/jcontacts-core.jar new file mode 100644 index 0000000..f4a7771 Binary files /dev/null and b/lib/jcontacts-core.jar differ diff --git a/lib/jcountry-core.jar b/lib/jcountry-core.jar new file mode 100644 index 0000000..ed14f78 Binary files /dev/null and b/lib/jcountry-core.jar differ diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar new file mode 100644 index 0000000..6f439fd Binary files /dev/null and b/lib/jphone-core.jar differ diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index 67f1b2c..064428e 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -141,6 +141,13 @@ is divided into following sections: + + + + + + + @@ -257,6 +264,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f + @@ -294,6 +302,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f + @@ -489,6 +498,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f + @@ -620,6 +630,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f + @@ -653,6 +664,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f + @@ -814,16 +826,32 @@ exists or setup the property manually. For example like this: + + + + + + + + - - + + + + + + + + + + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties index bcf69f2..687679e 100644 --- a/nbproject/genfiles.properties +++ b/nbproject/genfiles.properties @@ -1,8 +1,8 @@ -build.xml.data.CRC32=6192d214 +build.xml.data.CRC32=8561312a build.xml.script.CRC32=9c0f08a9 -build.xml.stylesheet.CRC32=5910fda3@1.51.1 +build.xml.stylesheet.CRC32=5910fda3@1.55.1 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=6192d214 -nbproject/build-impl.xml.script.CRC32=ce8c1126 -nbproject/build-impl.xml.stylesheet.CRC32=6096d939@1.51.1 +nbproject/build-impl.xml.data.CRC32=8561312a +nbproject/build-impl.xml.script.CRC32=80436f3c +nbproject/build-impl.xml.stylesheet.CRC32=6096d939@1.55.1 diff --git a/nbproject/project.properties b/nbproject/project.properties index 3a7d190..a52c6d6 100644 --- a/nbproject/project.properties +++ b/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 @@ -18,7 +19,12 @@ dist.dir=dist dist.ear.jar=${dist.dir}/${jar.name} dist.jar=${dist.dir}/${jar.name} dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= excludes= +file.reference.jcontacts-business-core.jar=lib/jcontacts-business-core.jar +file.reference.jcontacts-core.jar=lib/jcontacts-core.jar +file.reference.jcountry-core.jar=lib/jcountry-core.jar +file.reference.jphone-core.jar=lib/jphone-core.jar includes=** j2ee.compile.on.save=true j2ee.deploy.on.save=true @@ -34,6 +40,10 @@ jar.compress=false jar.name=jjobs-ejb.jar jars.in.ejbjar=false javac.classpath=\ + ${file.reference.jcontacts-core.jar}:\ + ${file.reference.jcontacts-business-core.jar}:\ + ${file.reference.jcountry-core.jar}:\ + ${file.reference.jphone-core.jar}:\ ${reference.jjobs-lib.jar} javac.compilerargs=-Xlint:unchecked -Xlint:deprecation javac.debug=true @@ -72,6 +82,10 @@ run.test.classpath=\ # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): runmain.jvmargs= source.encoding=UTF-8 +source.reference.jcontacts-business-core.jar=../jcontacts-business-core/src/ +source.reference.jcontacts-core.jar=../jcontacts-core/src/ +source.reference.jcountry-core.jar=../jcountry-core/src/ +source.reference.jphone-core.jar=../jphone-core/src/ source.root=src src.dir=${source.root}/java test.src.dir=test diff --git a/nbproject/project.xml b/nbproject/project.xml index c2182e3..08c49bc 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -5,6 +5,10 @@ jjobs-ejb 1.6.5 + file.reference.jcontacts-core.jar + file.reference.jcontacts-business-core.jar + file.reference.jcountry-core.jar + file.reference.jphone-core.jar reference.jjobs-lib.jar diff --git a/src/conf/persistence.xml b/src/conf/persistence.xml new file mode 100644 index 0000000..e638db3 --- /dev/null +++ b/src/conf/persistence.xml @@ -0,0 +1,24 @@ + + + + jdbc/jjobs + org.mxchange.jcontacts.contact.UserContact + org.mxchange.jcontactsbusiness.CompanyContact + org.mxchange.jcontactsbusiness.basicdata.CompanyBasicData + org.mxchange.jcontactsbusiness.branch.CompanyBranchOffice + org.mxchange.jcontactsbusiness.department.CompanyDepartment + org.mxchange.jcontactsbusiness.employee.CompanyEmployee + org.mxchange.jcontactsbusiness.headquarters.CompanyHeadQuartersData + org.mxchange.jcontactsbusiness.jobposition.EmployeePosition + org.mxchange.jcontactsbusiness.logo.CompanyLogo + org.mxchange.jcountry.data.CountryData + org.mxchange.jphone.phonenumbers.cellphone.CellphoneNumber + org.mxchange.jphone.phonenumbers.fax.FaxNumber + org.mxchange.jphone.phonenumbers.landline.LandLineNumber + org.mxchange.jphone.phonenumbers.smsprovider.CellphoneProvider + false + + + + + diff --git a/src/java/log4j2.xml b/src/java/log4j2.xml new file mode 100644 index 0000000..7f7ee3c --- /dev/null +++ b/src/java/log4j2.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + +