]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 5 Nov 2017 15:06:29 +0000 (16:06 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 5 Nov 2017 15:06:29 +0000 (16:06 +0100)
- added house number extension for branch office and headquarter address

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOffice.java
src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOffices.java
src/org/mxchange/jcontactsbusiness/model/branchoffice/BusinessBranchOffice.java
src/org/mxchange/jcontactsbusiness/model/headquarter/BusinessHeadquarter.java
src/org/mxchange/jcontactsbusiness/model/headquarter/Headquarter.java
src/org/mxchange/jcontactsbusiness/model/headquarter/Headquarters.java

index 77a3ae8edef383eae3a866fcc953c77e5626e978..40b2466fec48410514b4a70815225c086e0dc049 100644 (file)
@@ -90,6 +90,20 @@ public interface BranchOffice extends Serializable {
         */
        void setBranchHouseNumber (final Short branchHouseNumber);
 
+       /**
+        * Getter for house number's extension
+        * <p>
+        * @return House number's extension
+        */
+       String getBranchHouseNumberExtension ();
+
+       /**
+        * Setter for house number's extension
+        * <p>
+        * @param branchHouseNumberExtension House number's extension
+        */
+       void setBranchHouseNumberExtension (final String branchHouseNumberExtension);
+
        /**
         * Getter for branch office's last house number
         * <p>
index 37067853831224477788099ffd318d4c7b4f7c50..4255145d2f2f28926b11ab057eeae8fc07eb1f21 100644 (file)
@@ -74,6 +74,9 @@ public class BranchOffices implements Serializable {
                } else if (!Objects.equals(branchOffice1.getBranchHouseNumber(), branchOffice2.getBranchHouseNumber())) {
                        // Not the same
                        isSameAddress = false;
+               } else if (!Objects.equals(branchOffice1.getBranchHouseNumberExtension(), branchOffice2.getBranchHouseNumberExtension())) {
+                       // Not the same
+                       isSameAddress = false;
                } else if (!Objects.equals(branchOffice1.getBranchStore(), branchOffice2.getBranchStore())) {
                        // Not the same
                        isSameAddress = false;
index 604355f631065750bbd7bfd7366ae78fa59cb223..d52625aca19c56e0a86d8915aeb6b9117e6857c8 100644 (file)
@@ -129,6 +129,12 @@ public class BusinessBranchOffice implements BranchOffice {
        @Column (name = "branch_house_number", nullable = false)
        private Short branchHouseNumber;
 
+       /**
+        * House number's extension
+        */
+       @Column (name = "branch_house_number_extension")
+       private String branchHouseNumberExtension;
+
        /**
         * Id number
         */
@@ -395,6 +401,16 @@ public class BusinessBranchOffice implements BranchOffice {
                this.branchHouseNumber = branchHouseNumber;
        }
 
+       @Override
+       public String getBranchHouseNumberExtension () {
+               return this.branchHouseNumberExtension;
+       }
+
+       @Override
+       public void setBranchHouseNumberExtension (final String branchHouseNumberExtension) {
+               this.branchHouseNumberExtension = branchHouseNumberExtension;
+       }
+
        @Override
        public Long getBranchId () {
                return this.branchId;
index 9cfe846497f532b3fab6c71eab7644aca0bcaee3..2189b2bfedcae06144ccec4ff16a53bc07d576a3 100644 (file)
@@ -120,6 +120,12 @@ public class BusinessHeadquarter implements Headquarter {
        @Column (name = "headquarter_house_number", length = 4, nullable = false)
        private Short headquarterHouseNumber;
 
+       /**
+        * House number's extension
+        */
+       @Column (name = "headquarter_house_number_extension")
+       private String headquarterHouseNumberExtension;
+
        /**
         * Id number
         */
@@ -349,6 +355,16 @@ public class BusinessHeadquarter implements Headquarter {
                this.headquarterHouseNumber = headquarterHouseNumber;
        }
 
+       @Override
+       public String getHeadquarterHouseNumberExtension () {
+               return this.headquarterHouseNumberExtension;
+       }
+
+       @Override
+       public void setHeadquarterHouseNumberExtension (final String headquarterHouseNumberExtension) {
+               this.headquarterHouseNumberExtension = headquarterHouseNumberExtension;
+       }
+
        @Override
        public Long getHeadquarterId () {
                return this.headquarterId;
index 4db8fa52f5deea4ee0ff40179d5b79fe3ffcf8aa..9d12d60916360f3e51014c5175f1801286a064aa 100644 (file)
@@ -75,6 +75,20 @@ public interface Headquarter extends Serializable {
         */
        void setHeadquarterHouseNumber (final Short headquarterHouseNumber);
 
+       /**
+        * Getter for house number's extension
+        * <p>
+        * @return House number's extension
+        */
+       String getHeadquarterHouseNumberExtension ();
+
+       /**
+        * Setter for house number's extension
+        * <p>
+        * @param headquarterHouseNumberExtension House number's extension
+        */
+       void setHeadquarterHouseNumberExtension (final String headquarterHouseNumberExtension);
+
        /**
         * Getter for headquarter's last house number
         * <p>
index 9598374d9f3f5f4b8d63ab444a0ce0901aff8365..e9ade403d784bcb74856709f6595c6e67c13aaee 100644 (file)
@@ -71,6 +71,9 @@ public class Headquarters implements Serializable {
                } else if (!Objects.equals(headquarter1.getHeadquarterHouseNumber(), headquarter2.getHeadquarterHouseNumber())) {
                        // Not the same
                        isSameAddress = false;
+               } else if (!Objects.equals(headquarter1.getHeadquarterHouseNumberExtension(), headquarter2.getHeadquarterHouseNumberExtension())) {
+                       // Not the same
+                       isSameAddress = false;
                } else if (!Objects.equals(headquarter1.getHeadquarterStore(), headquarter2.getHeadquarterStore())) {
                        // Not the same
                        isSameAddress = false;