*/
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>
@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)
*/
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())) {
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;
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());