From: Roland Häder Date: Tue, 19 Apr 2016 14:36:19 +0000 (+0200) Subject: Refacture: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e5535f69b337e252b6bf08dad34ce4d1c643b36c;p=addressbook-ejb.git Refacture: - moved model (entities) files to jaddressbook-care - jaddressbook-core.jar is not needed here as no addressbooks are maintained Signed-off-by: Roland Häder --- diff --git a/lib/jaddressbook-core.jar b/lib/jaddressbook-core.jar new file mode 100644 index 0000000..246241d Binary files /dev/null and b/lib/jaddressbook-core.jar differ diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index 35e6098..b2ad187 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -844,6 +844,7 @@ exists or setup the property manually. For example like this: + @@ -862,12 +863,13 @@ exists or setup the property manually. For example like this: + - + @@ -880,10 +882,11 @@ exists or setup the property manually. For example like this: - - - - + + + + + @@ -899,6 +902,7 @@ exists or setup the property manually. For example like this: + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties index ebcfb60..267a362 100644 --- a/nbproject/genfiles.properties +++ b/nbproject/genfiles.properties @@ -3,6 +3,6 @@ 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=1470c767 -nbproject/build-impl.xml.script.CRC32=2174af13 +nbproject/build-impl.xml.data.CRC32=da392143 +nbproject/build-impl.xml.script.CRC32=9a18d109 nbproject/build-impl.xml.stylesheet.CRC32=6096d939@1.55.1 diff --git a/nbproject/project.properties b/nbproject/project.properties index c6826e4..49dc7ff 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -22,6 +22,7 @@ dist.javadoc.dir=${dist.dir}/javadoc endorsed.classpath= excludes= file.reference.addressbook-mailer.jar=lib/addressbook-mailer.jar +file.reference.jaddressbook-core.jar=lib/jaddressbook-core.jar file.reference.jcontacts-business-core.jar=lib/jcontacts-business-core.jar file.reference.jcontacts-core.jar=lib/jcontacts-core.jar file.reference.jcontacts-lib.jar=lib/jcontacts-lib.jar @@ -62,6 +63,7 @@ javac.classpath=\ ${file.reference.jcontacts-business-core.jar}:\ ${file.reference.juser-core.jar}:\ ${file.reference.juser-lib.jar}:\ + ${file.reference.jaddressbook-core.jar}:\ ${file.reference.jmailer-ee.jar}:\ ${file.reference.addressbook-mailer.jar}:\ ${reference.addressbook-lib.jar}:\ @@ -106,6 +108,7 @@ run.test.classpath=\ runmain.jvmargs= source.encoding=UTF-8 source.reference.addressbook-mailer.jar=../addressbook-mailer/src/ +source.reference.jaddressbook-core.jar=../jaddressbook-core/src/ source.reference.jcontacts-business-core.jar=../jcontacts-business-core/src/ source.reference.jcontacts-core.jar=../jcontacts-core/src/ source.reference.jcontacts-lib.jar=../jcontacts-lib/src/ diff --git a/nbproject/project.xml b/nbproject/project.xml index f47c3a9..53b5d99 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -17,6 +17,7 @@ file.reference.jcontacts-business-core.jar file.reference.juser-core.jar file.reference.juser-lib.jar + file.reference.jaddressbook-core.jar file.reference.jmailer-ee.jar file.reference.addressbook-mailer.jar reference.addressbook-lib.jar diff --git a/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java b/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java index 4aac269..38ea664 100644 --- a/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java +++ b/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java @@ -24,10 +24,12 @@ import java.util.List; import javax.ejb.Stateless; import javax.persistence.NoResultException; import javax.persistence.Query; -import org.mxchange.addressbook.exceptions.AddressbookNameAlreadyUsedException; -import org.mxchange.addressbook.exceptions.AddressbookNotFoundException; -import org.mxchange.addressbook.model.addressbook.entry.AddressbookEntry; -import org.mxchange.addressbook.model.addressbook.shared.ShareableAddressbook; +import org.mxchange.jaddressbookcore.exceptions.AddressbookNameAlreadyUsedException; +import org.mxchange.jaddressbookcore.exceptions.AddressbookNotFoundException; +import org.mxchange.jaddressbookcore.model.addressbook.Addressbook; +import org.mxchange.jaddressbookcore.model.addressbook.UserAddressbook; +import org.mxchange.jaddressbookcore.model.addressbook.entry.AddressbookEntry; +import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbook; import org.mxchange.jcoreee.database.BaseDatabaseBean; import org.mxchange.jusercore.model.user.User; diff --git a/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java b/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java index f3b9b95..9296aea 100644 --- a/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java +++ b/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java @@ -22,10 +22,10 @@ import java.util.Objects; import javax.ejb.Stateless; import javax.persistence.NoResultException; import javax.persistence.Query; -import org.mxchange.addressbook.exceptions.UserAlreadySharingAddressbookException; -import org.mxchange.addressbook.model.addressbook.Addressbook; -import org.mxchange.addressbook.model.addressbook.shared.AddressbookShare; -import org.mxchange.addressbook.model.addressbook.shared.ShareableAddressbook; +import org.mxchange.jaddressbookcore.exceptions.UserAlreadySharingAddressbookException; +import org.mxchange.jaddressbookcore.model.addressbook.Addressbook; +import org.mxchange.jaddressbookcore.model.addressbook.shared.AddressbookShare; +import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbook; import org.mxchange.jcoreee.database.BaseDatabaseBean; import org.mxchange.jusercore.model.user.User;