${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
<target if="is.jars.in.ejbjar" name="-library-inclusion-in-archive-by-user">
<copyfiles files="${file.reference.jcoreee.jar}" todir="${build.classes.dir}"/>
<copyfiles files="${file.reference.juser-lib.jar}" todir="${build.classes.dir}"/>
+ <copyfiles files="${file.reference.juser-core.jar}" todir="${build.classes.dir}"/>
+ <copyfiles files="${file.reference.jcontacts-core.jar}" todir="${build.classes.dir}"/>
+ <copyfiles files="${file.reference.jcontacts-business-core.jar}" todir="${build.classes.dir}"/>
<copyfiles files="${reference.addressbook-lib.jar}" todir="${build.classes.dir}"/>
</target>
<target if="is.server.weblogic" name="-library-inclusion-in-archive-weblogic">
<basename file="${file.reference.jcoreee.jar}" property="manifest.file.reference.jcoreee.jar"/>
<basename file="${file.reference.juser-lib.jar}" property="manifest.file.reference.juser-lib.jar"/>
+ <basename file="${file.reference.juser-core.jar}" property="manifest.file.reference.juser-core.jar"/>
+ <basename file="${file.reference.jcontacts-core.jar}" property="manifest.file.reference.jcontacts-core.jar"/>
+ <basename file="${file.reference.jcontacts-business-core.jar}" property="manifest.file.reference.jcontacts-business-core.jar"/>
<basename file="${reference.addressbook-lib.jar}" property="manifest.reference.addressbook-lib.jar"/>
<manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
- <attribute name="Extension-List" value="jar-1 jar-2 jar-3 "/>
+ <attribute name="Extension-List" value="jar-1 jar-2 jar-3 jar-4 jar-5 jar-6 "/>
<attribute name="jar-1-Extension-Name" value="${manifest.file.reference.jcoreee.jar}"/>
<attribute name="jar-2-Extension-Name" value="${manifest.file.reference.juser-lib.jar}"/>
- <attribute name="jar-3-Extension-Name" value="${manifest.reference.addressbook-lib.jar}"/>
+ <attribute name="jar-3-Extension-Name" value="${manifest.file.reference.juser-core.jar}"/>
+ <attribute name="jar-4-Extension-Name" value="${manifest.file.reference.jcontacts-core.jar}"/>
+ <attribute name="jar-5-Extension-Name" value="${manifest.file.reference.jcontacts-business-core.jar}"/>
+ <attribute name="jar-6-Extension-Name" value="${manifest.reference.addressbook-lib.jar}"/>
</manifest>
</target>
<target depends="compile" name="library-inclusion-in-manifest">
<copyfiles files="${file.reference.jcoreee.jar}" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.juser-lib.jar}" todir="${dist.ear.dir}/lib"/>
+ <copyfiles files="${file.reference.juser-core.jar}" todir="${dist.ear.dir}/lib"/>
+ <copyfiles files="${file.reference.jcontacts-core.jar}" todir="${dist.ear.dir}/lib"/>
+ <copyfiles files="${file.reference.jcontacts-business-core.jar}" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${reference.addressbook-lib.jar}" todir="${dist.ear.dir}/lib"/>
<manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
</target>
-build.xml.data.CRC32=99c0adbf
+build.xml.data.CRC32=a3556951
build.xml.script.CRC32=7d41e0fd
build.xml.stylesheet.CRC32=5910fda3@1.51.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=99c0adbf
-nbproject/build-impl.xml.script.CRC32=9f98b4d1
+nbproject/build-impl.xml.data.CRC32=a3556951
+nbproject/build-impl.xml.script.CRC32=8db758bb
nbproject/build-impl.xml.stylesheet.CRC32=6096d939@1.51.1
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
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.jcoreee.jar=lib\\jcoreee.jar
+file.reference.juser-core.jar=lib/juser-core.jar
file.reference.juser-lib.jar=lib/juser-lib.jar
includes=**
j2ee.compile.on.save=true
javac.classpath=\
${file.reference.jcoreee.jar}:\
${file.reference.juser-lib.jar}:\
+ ${file.reference.juser-core.jar}:\
+ ${file.reference.jcontacts-core.jar}:\
+ ${file.reference.jcontacts-business-core.jar}:\
${reference.addressbook-lib.jar}
javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
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=\
# (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.jcoreee.jar=../jcoreee/src/
+source.reference.juser-core.jar=../juser-core/src/
source.reference.juser-lib.jar=../juser-lib/src/
source.root=src
src.dir=${source.root}/java
<minimum-ant-version>1.6.5</minimum-ant-version>
<included-library dirs="200">file.reference.jcoreee.jar</included-library>
<included-library dirs="200">file.reference.juser-lib.jar</included-library>
+ <included-library dirs="200">file.reference.juser-core.jar</included-library>
+ <included-library dirs="200">file.reference.jcontacts-core.jar</included-library>
+ <included-library dirs="200">file.reference.jcontacts-business-core.jar</included-library>
<included-library dirs="200">reference.addressbook-lib.jar</included-library>
<source-roots>
<root id="src.dir"/>
--- /dev/null
+<?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="addressbook-ejbPU" transaction-type="JTA">
+ <jta-data-source>jdbc/contacts</jta-data-source>
+ <class>org.mxchange.addressbook.model.addressbook.UserAddressbook</class>
+ <class>org.mxchange.addressbook.model.addressbook.entry.UserAddressbookEntry</class>
+ <class>org.mxchange.jcontacts.contact.UserContact</class>
+ <class>org.mxchange.jcontactsbusiness.CompanyContact</class>
+ <class>org.mxchange.jcontactsbusiness.basicdata.CompanyBasicData</class>
+ <class>org.mxchange.jcontactsbusiness.branch.CompanyBranchOffice</class>
+ <class>org.mxchange.jcontactsbusiness.department.CompanyDepartment</class>
+ <class>org.mxchange.jcontactsbusiness.employee.CompanyEmployee</class>
+ <class>org.mxchange.jcontactsbusiness.headquarters.CompanyHeadQuartersData</class>
+ <class>org.mxchange.jcontactsbusiness.logo.CompanyLogo</class>
+ <class>org.mxchange.jusercore.model.user.LoginUser</class>
+ <exclude-unlisted-classes>false</exclude-unlisted-classes>
+ <properties>
+ <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
+ </properties>
+ </persistence-unit>
+</persistence>
--- /dev/null
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.addressbook.model.addressbook;
+
+import javax.ejb.EJB;
+import javax.ejb.Stateless;
+import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jusercore.model.login.UserLoginSessionBeanRemote;
+
+/**
+ * A stateless bean handling addressbooks
+ * <p>
+ * @author Roland Haeder
+ */
+@Stateless (name = "addressbook", mappedName = "ejb/stateless-addressbook", description = "A stateless bean for handling addressbooks")
+public class AddressbookSessionBean extends BaseDatabaseBean implements AddressbookSessionBeanRemote {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 129_857_871_287_691L;
+
+ /**
+ * Login bean
+ */
+ @EJB
+ private UserLoginSessionBeanRemote loginBean;
+}
+++ /dev/null
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.addressbook.model.addressbooks;
-
-import javax.ejb.EJB;
-import javax.ejb.Stateless;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
-import org.mxchange.jusercore.model.login.UserLoginSessionBeanRemote;
-
-/**
- * A stateless bean handling addressbooks
- * <p>
- * @author Roland Haeder
- */
-@Stateless (name = "addressbook", mappedName = "ejb/stateless-addressbook", description = "A stateless bean for handling addressbooks")
-public class AddressbookSessionBean extends BaseDatabaseBean implements AddressbookSessionBeanRemote {
-
- /**
- * Serial number
- */
- private static final long serialVersionUID = 129_857_871_287_691L;
-
- /**
- * Login bean
- */
- @EJB
- private UserLoginSessionBeanRemote loginBean;
-}