]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
renamed headQuartersData to companyHeadQuartersData as all others have 'company'
authorRoland Häder <roland@mxchange.org>
Sat, 19 Aug 2017 17:26:14 +0000 (19:26 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 19 Aug 2017 17:26:14 +0000 (19:26 +0200)
as prefix

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

index 048556264ac993def02d22d6e5d8c48b544078a8..399b17883d99d349826f540d612aeec0679cf335 100644 (file)
@@ -95,14 +95,14 @@ public interface BusinessBasicData extends Serializable {
         * <p>
         * @return Headquarters data
         */
-       HeadQuartersData getHeadQuartersData ();
+       HeadQuartersData getCompanyHeadQuartersData ();
 
        /**
         * Setter for headquarters data
         * <p>
         * @param headQuartersData Headquarters data
         */
-       void setHeadQuartersData (final HeadQuartersData headQuartersData);
+       void setCompanyHeadQuartersData (final HeadQuartersData headQuartersData);
 
        /**
         * Getter for user owner instance
index d821571785f5322d56fb3ca1c6d53a84fa3f8b11..a5ebc01682742e1ef7bfd6d081b823e6422cdb91 100644 (file)
@@ -172,7 +172,7 @@ public class CompanyBasicData implements BusinessBasicData {
         */
        @JoinColumn (name = "company_headquarters_data_id")
        @OneToOne (targetEntity = CompanyHeadQuartersData.class, cascade = CascadeType.ALL)
-       private HeadQuartersData headQuartersData;
+       private HeadQuartersData companyHeadQuartersData;
 
        @Override
        public boolean equals (final Object object) {
@@ -188,7 +188,7 @@ public class CompanyBasicData implements BusinessBasicData {
                        return false;
                } else if (!Objects.equals(this.getCompanyName(), other.getCompanyName())) {
                        return false;
-               } else if (!Objects.equals(this.getHeadQuartersData(), other.getHeadQuartersData())) {
+               } else if (!Objects.equals(this.getCompanyHeadQuartersData(), other.getCompanyHeadQuartersData())) {
                        return false;
                } else if (!Objects.equals(this.getCompanyContactEmployee(), other.getCompanyContactEmployee())) {
                        return false;
@@ -344,13 +344,13 @@ public class CompanyBasicData implements BusinessBasicData {
        }
 
        @Override
-       public HeadQuartersData getHeadQuartersData () {
-               return this.headQuartersData;
+       public HeadQuartersData getCompanyHeadQuartersData () {
+               return this.companyHeadQuartersData;
        }
 
        @Override
-       public void setHeadQuartersData (final HeadQuartersData headQuartersData) {
-               this.headQuartersData = headQuartersData;
+       public void setCompanyHeadQuartersData (final HeadQuartersData companyHeadQuartersData) {
+               this.companyHeadQuartersData = companyHeadQuartersData;
        }
 
        @Override
@@ -359,7 +359,7 @@ public class CompanyBasicData implements BusinessBasicData {
 
                hash = 37 * hash + Objects.hashCode(this.getBusinessDataId());
                hash = 37 * hash + Objects.hashCode(this.getCompanyName());
-               hash = 37 * hash + Objects.hashCode(this.getHeadQuartersData());
+               hash = 37 * hash + Objects.hashCode(this.getCompanyHeadQuartersData());
                hash = 37 * hash + Objects.hashCode(this.getCompanyContactEmployee());
                hash = 37 * hash + Objects.hashCode(this.getCompanyFounder());