]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
owner is already given in "super-entity" BusinessContact, which may need
authorRoland Häder <roland@mxchange.org>
Sun, 23 Jul 2017 11:38:27 +0000 (13:38 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 23 Jul 2017 11:38:27 +0000 (13:38 +0200)
renaming because it is not a contact, but an abstract business entity where all
data of that (entire) business is attached to, like employees, branch offices
and so on.

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/CompanyContact.java
src/org/mxchange/jcontactsbusiness/basicdata/BusinessBasicData.java
src/org/mxchange/jcontactsbusiness/basicdata/CompanyBasicData.java

index ec4bc1291fecabd82ffdd7acb2f4955aad0add79..1c38b86d3b1f87700f92b611012a07aafac582c4 100644 (file)
@@ -236,4 +236,5 @@ public class CompanyContact implements BusinessContact {
 
                return hash;
        }
+
 }
index e03df62d28caf072b1b882d167150aa0611bd45d..29a041ae8f2afa6877753d5037cebc5082a9648c 100644 (file)
@@ -21,7 +21,6 @@ import java.util.Calendar;
 import org.mxchange.jcontactsbusiness.logo.BusinessLogo;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
-import org.mxchange.jusercore.model.user.User;
 
 /**
  * A POJI for basic business data
@@ -170,20 +169,6 @@ public interface BusinessBasicData extends Serializable {
         */
        void setCompanyWebsiteUrl (final String companyWebsiteUrl);
 
-       /**
-        * Getter for user owner instance
-        * <p>
-        * @return User owner instance
-        */
-       User getCompanyBasicUserOwner ();
-
-       /**
-        * Setter for user owner instance
-        * <p>
-        * @param companyBasicUserOwner User owner instance
-        */
-       void setCompanyBasicUserOwner (final User companyBasicUserOwner);
-
        /**
         * Getter for timestamp when this entry has been created
         * <p>
@@ -203,4 +188,5 @@ public interface BusinessBasicData extends Serializable {
 
        @Override
        int hashCode ();
+
 }
index c578795ca2f274895b2965325a74640931023d49..8918906314bc9840a987b9c5ce2e4f0ad4424cc5 100644 (file)
@@ -38,8 +38,6 @@ import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.fax.FaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 import org.mxchange.jphone.phonenumbers.landline.LandLineNumber;
-import org.mxchange.jusercore.model.user.LoginUser;
-import org.mxchange.jusercore.model.user.User;
 
 /**
  * A POJO for basic company data
@@ -73,13 +71,6 @@ public class CompanyBasicData implements BusinessBasicData {
        @GeneratedValue (strategy = GenerationType.IDENTITY)
        private Long companyBasicId;
 
-       /**
-        * User owner instance
-        */
-       @JoinColumn (name = "company_user_id", nullable = false, updatable = false)
-       @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
-       private User companyBasicUserOwner;
-
        /**
         * Comments (any)
         */
@@ -158,8 +149,6 @@ public class CompanyBasicData implements BusinessBasicData {
                        return false;
                } else if (!Objects.equals(this.getCompanyTaxNumber(), other.getCompanyTaxNumber())) {
                        return false;
-               } else if (!Objects.equals(this.getCompanyBasicUserOwner(), other.getCompanyBasicUserOwner())) {
-                       return false;
                }
 
                return true;
@@ -187,16 +176,6 @@ public class CompanyBasicData implements BusinessBasicData {
                this.companyBasicId = companyBasicId;
        }
 
-       @Override
-       public User getCompanyBasicUserOwner () {
-               return this.companyBasicUserOwner;
-       }
-
-       @Override
-       public void setCompanyBasicUserOwner (final User companyBasicUserOwner) {
-               this.companyBasicUserOwner = companyBasicUserOwner;
-       }
-
        @Override
        public String getCompanyComments () {
                return this.companyComments;
@@ -295,7 +274,6 @@ public class CompanyBasicData implements BusinessBasicData {
                hash = 53 * hash + Objects.hashCode(this.getCompanyLegalStatus());
                hash = 53 * hash + Objects.hashCode(this.getCompanyName());
                hash = 53 * hash + Objects.hashCode(this.getCompanyTaxNumber());
-               hash = 53 * hash + Objects.hashCode(this.getCompanyBasicUserOwner());
 
                return hash;
        }