]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Wed, 20 Sep 2017 19:41:03 +0000 (21:41 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 20 Sep 2017 19:41:03 +0000 (21:41 +0200)
- added branch office number which some receipts showed

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOffice.java
src/org/mxchange/jcontactsbusiness/model/branchoffice/CompanyBranchOffice.java

index 7d205a58facd7349b1018d67d7ccbef6c5a9c555..cc132aa5bcbc2a2c29bb3106383e285a52920221 100644 (file)
@@ -102,6 +102,20 @@ public interface BranchOffice extends Serializable {
         */
        void setBranchLandLineNumber (final DialableLandLineNumber branchPhoneNumber);
 
+       /**
+        * Getter for branch office number
+        * <p>
+        * @return Branch office number
+        */
+       Long getBranchNumber ();
+
+       /**
+        * Setter for branch office number
+        * <p>
+        * @param branchNumber Branch office number
+        */
+       void setBranchNumber (final Long branchNumber);
+
        /**
         * Getter for branch office's store
         * <p>
index 4a855a8584b9a8cff170326a06270a8f86ee435b..cfe69097d123988c90e849fe2ba1c229c0e469ad 100644 (file)
@@ -140,6 +140,12 @@ public class CompanyBranchOffice implements BranchOffice {
        @OneToOne (targetEntity = LandLineNumber.class, cascade = CascadeType.ALL)
        private DialableLandLineNumber branchLandLineNumber;
 
+       /**
+        * Numer of this branch office
+        */
+       @Column(name = "branch_number")
+       private Long branchNumber;
+
        /**
         * Branch office's store (if multiple-store building)
         */
@@ -266,6 +272,8 @@ public class CompanyBranchOffice implements BranchOffice {
                        return false;
                } else if (!Objects.equals(this.getBranchHouseNumber(), other.getBranchHouseNumber())) {
                        return false;
+               } else if (!Objects.equals(this.getBranchNumber(), other.getBranchNumber())) {
+                       return false;
                } else if (!Objects.equals(this.getBranchStore(), other.getBranchStore())) {
                        return false;
                } else if (!Objects.equals(this.getBranchStreet(), other.getBranchStreet())) {
@@ -381,6 +389,16 @@ public class CompanyBranchOffice implements BranchOffice {
                this.branchLandLineNumber = branchLandLineNumber;
        }
 
+       @Override
+       public Long getBranchNumber () {
+               return this.branchNumber;
+       }
+
+       @Override
+       public void setBranchNumber (final Long branchNumber) {
+               this.branchNumber = branchNumber;
+       }
+
        @Override
        public Short getBranchStore () {
                return this.branchStore;
@@ -438,6 +456,7 @@ public class CompanyBranchOffice implements BranchOffice {
                hash = 53 * hash + Objects.hashCode(this.getBranchId());
                hash = 53 * hash + Objects.hashCode(this.getBranchCity());
                hash = 53 * hash + Objects.hashCode(this.getBranchCountry());
+               hash = 53 * hash + Objects.hashCode(this.getBranchNumber());
                hash = 53 * hash + Objects.hashCode(this.getBranchHouseNumber());
                hash = 53 * hash + Objects.hashCode(this.getBranchStore());
                hash = 53 * hash + Objects.hashCode(this.getBranchStreet());