From: Roland Häder Date: Wed, 1 Nov 2017 20:58:38 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e882c2f5621e99e119e896aa78fed22e609e82f2;p=jcontacts-business-core.git Continued: - had to rename Headquarters again, to Headquarter to make room for a tools class, it is common to name them s and Headquarterss is not correct Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcontactsbusiness/exceptions/headquarters/HeadquartersAlreadyAddedException.java b/src/org/mxchange/jcontactsbusiness/exceptions/headquarters/HeadquartersAlreadyAddedException.java index d92a414..25a5470 100644 --- a/src/org/mxchange/jcontactsbusiness/exceptions/headquarters/HeadquartersAlreadyAddedException.java +++ b/src/org/mxchange/jcontactsbusiness/exceptions/headquarters/HeadquartersAlreadyAddedException.java @@ -17,7 +17,7 @@ package org.mxchange.jcontactsbusiness.exceptions.headquarters; import java.text.MessageFormat; -import org.mxchange.jcontactsbusiness.model.headquarters.Headquarters; +import org.mxchange.jcontactsbusiness.model.headquarters.Headquarter; /** * An exception thrown when a headquarters (entity) was already added. @@ -34,9 +34,9 @@ public class HeadquartersAlreadyAddedException extends Exception { /** * Constructor with a headquarters instance *

- * @param headquarters Headquarters that is already found + * @param headquarters Headquarter that is already found */ - public HeadquartersAlreadyAddedException (final Headquarters headquarters) { + public HeadquartersAlreadyAddedException (final Headquarter headquarters) { super(MessageFormat.format("Headquarters office with headquartersStreet={0},headquartersHouseNumber={1},headquartersZipCode={2},headquartersCity={3} already created.", headquarters.getHeadquartersStreet(), headquarters.getHeadquartersHouseNumber(), headquarters.getHeadquartersZipCode(), headquarters.getHeadquartersCity())); } diff --git a/src/org/mxchange/jcontactsbusiness/model/basicdata/BasicData.java b/src/org/mxchange/jcontactsbusiness/model/basicdata/BasicData.java index 1a129dd..ff170c6 100644 --- a/src/org/mxchange/jcontactsbusiness/model/basicdata/BasicData.java +++ b/src/org/mxchange/jcontactsbusiness/model/basicdata/BasicData.java @@ -25,7 +25,7 @@ import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber; import org.mxchange.jusercore.model.user.User; import org.mxchange.jcontactsbusiness.model.logo.Logo; -import org.mxchange.jcontactsbusiness.model.headquarters.Headquarters; +import org.mxchange.jcontactsbusiness.model.headquarters.Headquarter; /** * A POJI for business contact classes @@ -93,16 +93,16 @@ public interface BasicData extends Serializable { /** * Getter for headquarters data *

- * @return Headquarters data + * @return Headquarter data */ - Headquarters getCompanyHeadQuartersData (); + Headquarter getCompanyHeadQuartersData (); /** * Setter for headquarters data *

- * @param headQuartersData Headquarters data + * @param headQuartersData Headquarter data */ - void setCompanyHeadQuartersData (final Headquarters headQuartersData); + void setCompanyHeadQuartersData (final Headquarter headQuartersData); /** * Getter for user owner instance diff --git a/src/org/mxchange/jcontactsbusiness/model/basicdata/BusinessBasicData.java b/src/org/mxchange/jcontactsbusiness/model/basicdata/BusinessBasicData.java index 5cf2bb1..d532bfc 100644 --- a/src/org/mxchange/jcontactsbusiness/model/basicdata/BusinessBasicData.java +++ b/src/org/mxchange/jcontactsbusiness/model/basicdata/BusinessBasicData.java @@ -47,7 +47,7 @@ import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber; import org.mxchange.jphone.model.phonenumbers.landline.LandLineNumber; import org.mxchange.jusercore.model.user.LoginUser; import org.mxchange.jusercore.model.user.User; -import org.mxchange.jcontactsbusiness.model.headquarters.Headquarters; +import org.mxchange.jcontactsbusiness.model.headquarters.Headquarter; /** * A POJO for business basic data @@ -132,7 +132,7 @@ public class BusinessBasicData implements BasicData { */ @JoinColumn (name = "company_headquarters_data_id") @OneToOne (targetEntity = BusinessHeadquarters.class, cascade = CascadeType.ALL) - private Headquarters companyHeadQuartersData; + private Headquarter companyHeadQuartersData; /** * Company's main phone number: +ccxxxxxxxxxx @@ -309,12 +309,12 @@ public class BusinessBasicData implements BasicData { } @Override - public Headquarters getCompanyHeadQuartersData () { + public Headquarter getCompanyHeadQuartersData () { return this.companyHeadQuartersData; } @Override - public void setCompanyHeadQuartersData (final Headquarters companyHeadQuartersData) { + public void setCompanyHeadQuartersData (final Headquarter companyHeadQuartersData) { this.companyHeadQuartersData = companyHeadQuartersData; } diff --git a/src/org/mxchange/jcontactsbusiness/model/department/BusinessDepartment.java b/src/org/mxchange/jcontactsbusiness/model/department/BusinessDepartment.java index 582b922..df247c5 100644 --- a/src/org/mxchange/jcontactsbusiness/model/department/BusinessDepartment.java +++ b/src/org/mxchange/jcontactsbusiness/model/department/BusinessDepartment.java @@ -43,7 +43,7 @@ import org.mxchange.jusercore.model.user.LoginUser; import org.mxchange.jusercore.model.user.User; import org.mxchange.jcontactsbusiness.model.employee.Employable; import org.mxchange.jcontactsbusiness.model.basicdata.BasicData; -import org.mxchange.jcontactsbusiness.model.headquarters.Headquarters; +import org.mxchange.jcontactsbusiness.model.headquarters.Headquarter; /** * A POJO for company departments @@ -93,7 +93,7 @@ public class BusinessDepartment implements Department { */ @JoinColumn (name = "department_headquarters_id") @OneToOne (targetEntity = BusinessHeadquarters.class, cascade = CascadeType.REFRESH) - private Headquarters departmentHeadquarters; + private Headquarter departmentHeadquarters; /** * Department i18n key @@ -211,12 +211,12 @@ public class BusinessDepartment implements Department { } @Override - public Headquarters getDepartmentHeadquarters () { + public Headquarter getDepartmentHeadquarters () { return this.departmentHeadquarters; } @Override - public void setDepartmentHeadquarters (final Headquarters departmentHeadquarters) { + public void setDepartmentHeadquarters (final Headquarter departmentHeadquarters) { this.departmentHeadquarters = departmentHeadquarters; } diff --git a/src/org/mxchange/jcontactsbusiness/model/department/Department.java b/src/org/mxchange/jcontactsbusiness/model/department/Department.java index d349513..36ecead 100644 --- a/src/org/mxchange/jcontactsbusiness/model/department/Department.java +++ b/src/org/mxchange/jcontactsbusiness/model/department/Department.java @@ -22,7 +22,7 @@ import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice; import org.mxchange.jusercore.model.user.User; import org.mxchange.jcontactsbusiness.model.employee.Employable; import org.mxchange.jcontactsbusiness.model.basicdata.BasicData; -import org.mxchange.jcontactsbusiness.model.headquarters.Headquarters; +import org.mxchange.jcontactsbusiness.model.headquarters.Headquarter; /** * A POJI for company departments @@ -50,14 +50,14 @@ public interface Department extends Serializable { *

* @return Connection to company headquarters */ - Headquarters getDepartmentHeadquarters (); + Headquarter getDepartmentHeadquarters (); /** * Setter for connection to company headquarters *

* @param departmentHeadquarters Connection to company headquarters */ - void setDepartmentHeadquarters (final Headquarters departmentHeadquarters); + void setDepartmentHeadquarters (final Headquarter departmentHeadquarters); /** * Getter for connection to company branch office diff --git a/src/org/mxchange/jcontactsbusiness/model/employee/BusinessEmployee.java b/src/org/mxchange/jcontactsbusiness/model/employee/BusinessEmployee.java index 5fbcb64..2e5c606 100644 --- a/src/org/mxchange/jcontactsbusiness/model/employee/BusinessEmployee.java +++ b/src/org/mxchange/jcontactsbusiness/model/employee/BusinessEmployee.java @@ -48,7 +48,7 @@ import org.mxchange.jphone.model.phonenumbers.mobile.MobileNumber; import org.mxchange.jusercore.model.user.LoginUser; import org.mxchange.jusercore.model.user.User; import org.mxchange.jcontactsbusiness.model.basicdata.BasicData; -import org.mxchange.jcontactsbusiness.model.headquarters.Headquarters; +import org.mxchange.jcontactsbusiness.model.headquarters.Headquarter; /** * A POJO for company employees (including CEO) @@ -112,7 +112,7 @@ public class BusinessEmployee implements Employable { */ @JoinColumn (name = "employee_headquarters_id") @OneToOne (targetEntity = BusinessHeadquarters.class, cascade = CascadeType.REFRESH) - private Headquarters employeeHeadquarter; + private Headquarter employeeHeadquarter; /** * Id number @@ -263,12 +263,12 @@ public class BusinessEmployee implements Employable { } @Override - public Headquarters getEmployeeHeadquarter () { + public Headquarter getEmployeeHeadquarter () { return this.employeeHeadquarter; } @Override - public void setEmployeeHeadquarter (final Headquarters employeeHeadquarter) { + public void setEmployeeHeadquarter (final Headquarter employeeHeadquarter) { this.employeeHeadquarter = employeeHeadquarter; } diff --git a/src/org/mxchange/jcontactsbusiness/model/employee/Employable.java b/src/org/mxchange/jcontactsbusiness/model/employee/Employable.java index c724c02..4063171 100644 --- a/src/org/mxchange/jcontactsbusiness/model/employee/Employable.java +++ b/src/org/mxchange/jcontactsbusiness/model/employee/Employable.java @@ -25,7 +25,7 @@ import org.mxchange.jcontactsbusiness.model.jobposition.JobPosition; import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber; import org.mxchange.jusercore.model.user.User; import org.mxchange.jcontactsbusiness.model.basicdata.BasicData; -import org.mxchange.jcontactsbusiness.model.headquarters.Headquarters; +import org.mxchange.jcontactsbusiness.model.headquarters.Headquarter; /** * A POJI for employees @@ -81,14 +81,14 @@ public interface Employable extends Serializable { *

* @return Employable's head quarters */ - Headquarters getEmployeeHeadquarter (); + Headquarter getEmployeeHeadquarter (); /** * Getter for employee's head quarters *

* @param employeeHeadquarter Employable's head quarters */ - void setEmployeeHeadquarter (final Headquarters employeeHeadquarter); + void setEmployeeHeadquarter (final Headquarter employeeHeadquarter); /** * Getter for employee's email address diff --git a/src/org/mxchange/jcontactsbusiness/model/headquarters/BusinessHeadquarters.java b/src/org/mxchange/jcontactsbusiness/model/headquarters/BusinessHeadquarters.java index ba12af3..9fe7e36 100644 --- a/src/org/mxchange/jcontactsbusiness/model/headquarters/BusinessHeadquarters.java +++ b/src/org/mxchange/jcontactsbusiness/model/headquarters/BusinessHeadquarters.java @@ -55,7 +55,7 @@ import org.mxchange.jusercore.model.user.User; @Entity (name = "company_headquarters") @Table (name = "company_headquarters") @SuppressWarnings ("PersistenceUnitPresent") -public class BusinessHeadquarters implements Headquarters { +public class BusinessHeadquarters implements Headquarter { /** * Serial number @@ -64,7 +64,7 @@ public class BusinessHeadquarters implements Headquarters { private static final long serialVersionUID = 385_752_948_781_761L; /** - * Headquarters' city name + * Headquarter' city name */ @Basic (optional = false) @Column (name = "headquarters_city", length = 100, nullable = false) @@ -93,14 +93,14 @@ public class BusinessHeadquarters implements Headquarters { private Date headquartersCreated; /** - * Headquarters' fax number + * Headquarter' fax number */ @JoinColumn (name = "headquarters_fax_number_id") @OneToOne (targetEntity = FaxNumber.class, cascade = CascadeType.ALL) private DialableFaxNumber headquartersFaxNumber; /** - * Headquarters' house number + * Headquarter' house number */ @Basic (optional = false) @Column (name = "headquarters_house_number", length = 4, nullable = false) @@ -115,7 +115,7 @@ public class BusinessHeadquarters implements Headquarters { private Long headquartersId; /** - * Headquarters' land-line number + * Headquarter' land-line number */ @JoinColumn (name = "headquarters_landline_number_id") @OneToOne (targetEntity = LandLineNumber.class, cascade = CascadeType.ALL) @@ -129,20 +129,20 @@ public class BusinessHeadquarters implements Headquarters { private List headquartersOpeningTimes; /** - * Headquarters' store number (multi-store building only) + * Headquarter' store number (multi-store building only) */ @Column (name = "headquarters_store", length = 3) private Short headquartersStore; /** - * Headquarters' street name + * Headquarter' street name */ @Basic (optional = false) @Column (name = "headquarters_street", length = 100, nullable = false) private String headquartersStreet; /** - * Headquarters' suite number + * Headquarter' suite number */ @Column (name = "headquarters_suite_number", length = 4) private Short headquartersSuiteNumber; @@ -155,7 +155,7 @@ public class BusinessHeadquarters implements Headquarters { private User headquartersUserOwner; /** - * Headquarters' ZIP code + * Headquarter' ZIP code */ @Basic (optional = false) @Column (name = "headquarters_zip_code", length = 6, nullable = false) @@ -169,7 +169,7 @@ public class BusinessHeadquarters implements Headquarters { return false; } - final Headquarters other = (Headquarters) object; + final Headquarter other = (Headquarter) object; if (!Objects.equals(this.getHeadquartersId(), other.getHeadquartersId())) { return false; diff --git a/src/org/mxchange/jcontactsbusiness/model/headquarters/Headquarter.java b/src/org/mxchange/jcontactsbusiness/model/headquarters/Headquarter.java new file mode 100644 index 0000000..ee834a1 --- /dev/null +++ b/src/org/mxchange/jcontactsbusiness/model/headquarters/Headquarter.java @@ -0,0 +1,238 @@ +/* + * Copyright (C) 2016, 2017 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jcontactsbusiness.model.headquarters; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; +import org.mxchange.jcontactsbusiness.model.employee.Employable; +import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime; +import org.mxchange.jcountry.model.data.Country; +import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber; +import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber; +import org.mxchange.jusercore.model.user.User; + +/** + * A POJI for headquarters data + *

+ * @author Roland Häder + */ +public interface Headquarter extends Serializable { + + /** + * Getter for headquarters' city name + *

+ * @return Headquarter' city name + */ + String getHeadquartersCity (); + + /** + * Setter for headquarters' city name + *

+ * @param headquartersCity Headquarter' city name + */ + void setHeadquartersCity (final String headquartersCity); + + /** + * Getter for headquarters' country code + *

+ * @return Headquarter' country code + */ + Country getHeadquartersCountry (); + + /** + * Setter for headquarters' country code + *

+ * @param headquartersCountryCode Headquarter' country code + */ + void setHeadquartersCountry (final Country headquartersCountryCode); + + /** + * Getter for headquarters' house number + *

+ * @return Headquarter' house number + */ + Short getHeadquartersHouseNumber (); + + /** + * Setter for headquarters' house number + *

+ * @param headquartersHouseNumber Headquarter' house number + */ + void setHeadquartersHouseNumber (final Short headquartersHouseNumber); + + /** + * Getter for headquarters' id number + *

+ * @return Headquarter' id number + */ + Long getHeadquartersId (); + + /** + * Setter for headquarters' id number + *

+ * @param headquartersId Headquarter' id number + */ + void setHeadquartersId (final Long headquartersId); + + /** + * Getter for headquarters' store number + *

+ * @return Headquarter' store number + */ + Short getHeadquartersStore (); + + /** + * Setter for headquarters' store number + *

+ * @param headquartersStore Headquarter' store number + */ + void setHeadquartersStore (final Short headquartersStore); + + /** + * Getter for headquarters' street name + *

+ * @return Headquarter' street name + */ + String getHeadquartersStreet (); + + /** + * Setter for headquarters' street name + *

+ * @param headquartersStreet Headquarter' street name + */ + void setHeadquartersStreet (final String headquartersStreet); + + /** + * Getter for headquarters' suite number + *

+ * @return Headquarter' suite number + */ + Short getHeadquartersSuiteNumber (); + + /** + * Setter for headquarters' suite number + *

+ * @param headquartersSuiteNumber Headquarter' suite number + */ + void setHeadquartersSuiteNumber (final Short headquartersSuiteNumber); + + /** + * Getter for headquarters' ZIP code + *

+ * @return Headquarter' ZIP code + */ + Integer getHeadquartersZipCode (); + + /** + * Setter for headquarters' ZIP code + *

+ * @param headquartersZipCode Headquarter' ZIP code + */ + void setHeadquartersZipCode (final Integer headquartersZipCode); + + /** + * Getter for headquarters' land-line number + *

+ * @return Headquarter' land-line number + */ + DialableLandLineNumber getHeadquartersLandLineNumber (); + + /** + * Setter for headquarters' land-line number + *

+ * @param headquartersLandLineNumber Headquarter' land-line number + */ + void setHeadquartersLandLineNumber (final DialableLandLineNumber headquartersLandLineNumber); + + /** + * Getter for headquarters' fax number + *

+ * @return Headquarter' fax number + */ + DialableFaxNumber getHeadquartersFaxNumber (); + + /** + * Setter for headquarters' fax number + *

+ * @param headquartersFaxNumber Headquarter' fax number + */ + void setHeadquartersFaxNumber (final DialableFaxNumber headquartersFaxNumber); + + /** + * Getter for user owner instance + *

+ * @return User owner instance + */ + User getHeadquartersUserOwner (); + + /** + * Setter for user owner instance + *

+ * @param headquartersUserOwner User owner instance + */ + void setHeadquartersUserOwner (final User headquartersUserOwner); + + /** + * Getter for branch office owning employee + *

+ * @return Owning employee + */ + Employable getHeadquartersContactEmployee (); + + /** + * Setter for branch office contact person + *

+ * @param branchContactEmployee Contact person + */ + void setHeadquartersContactEmployee (final Employable branchContactEmployee); + + /** + * Getter for opening times for this branch office + *

+ * @return Opening times + */ + List getHeadquartersOpeningTimes (); + + /** + * Setter for opening times for this branch office + *

+ * @param branchOpeningTimes Opening times + */ + void setHeadquartersOpeningTimes (final List branchOpeningTimes); + + /** + * Getter for timestamp when this entry has been created + *

+ * @return Timestamp when this entry has been created + */ + Date getHeadquartersCreated (); + + /** + * Setter for timestamp when this entry has been created + *

+ * @param headquartersCreated Timestamp when this entry has been created + */ + void setHeadquartersCreated (final Date headquartersCreated); + + @Override + boolean equals (final Object object); + + @Override + int hashCode (); + +} diff --git a/src/org/mxchange/jcontactsbusiness/model/headquarters/Headquarters.java b/src/org/mxchange/jcontactsbusiness/model/headquarters/Headquarters.java deleted file mode 100644 index 1178198..0000000 --- a/src/org/mxchange/jcontactsbusiness/model/headquarters/Headquarters.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright (C) 2016, 2017 Roland Häder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jcontactsbusiness.model.headquarters; - -import java.io.Serializable; -import java.util.Date; -import java.util.List; -import org.mxchange.jcontactsbusiness.model.employee.Employable; -import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime; -import org.mxchange.jcountry.model.data.Country; -import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber; -import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber; -import org.mxchange.jusercore.model.user.User; - -/** - * A POJI for headquarters data - *

- * @author Roland Häder - */ -public interface Headquarters extends Serializable { - - /** - * Getter for headquarters' city name - *

- * @return Headquarters' city name - */ - String getHeadquartersCity (); - - /** - * Setter for headquarters' city name - *

- * @param headquartersCity Headquarters' city name - */ - void setHeadquartersCity (final String headquartersCity); - - /** - * Getter for headquarters' country code - *

- * @return Headquarters' country code - */ - Country getHeadquartersCountry (); - - /** - * Setter for headquarters' country code - *

- * @param headquartersCountryCode Headquarters' country code - */ - void setHeadquartersCountry (final Country headquartersCountryCode); - - /** - * Getter for headquarters' house number - *

- * @return Headquarters' house number - */ - Short getHeadquartersHouseNumber (); - - /** - * Setter for headquarters' house number - *

- * @param headquartersHouseNumber Headquarters' house number - */ - void setHeadquartersHouseNumber (final Short headquartersHouseNumber); - - /** - * Getter for headquarters' id number - *

- * @return Headquarters' id number - */ - Long getHeadquartersId (); - - /** - * Setter for headquarters' id number - *

- * @param headquartersId Headquarters' id number - */ - void setHeadquartersId (final Long headquartersId); - - /** - * Getter for headquarters' store number - *

- * @return Headquarters' store number - */ - Short getHeadquartersStore (); - - /** - * Setter for headquarters' store number - *

- * @param headquartersStore Headquarters' store number - */ - void setHeadquartersStore (final Short headquartersStore); - - /** - * Getter for headquarters' street name - *

- * @return Headquarters' street name - */ - String getHeadquartersStreet (); - - /** - * Setter for headquarters' street name - *

- * @param headquartersStreet Headquarters' street name - */ - void setHeadquartersStreet (final String headquartersStreet); - - /** - * Getter for headquarters' suite number - *

- * @return Headquarters' suite number - */ - Short getHeadquartersSuiteNumber (); - - /** - * Setter for headquarters' suite number - *

- * @param headquartersSuiteNumber Headquarters' suite number - */ - void setHeadquartersSuiteNumber (final Short headquartersSuiteNumber); - - /** - * Getter for headquarters' ZIP code - *

- * @return Headquarters' ZIP code - */ - Integer getHeadquartersZipCode (); - - /** - * Setter for headquarters' ZIP code - *

- * @param headquartersZipCode Headquarters' ZIP code - */ - void setHeadquartersZipCode (final Integer headquartersZipCode); - - /** - * Getter for headquarters' land-line number - *

- * @return Headquarters' land-line number - */ - DialableLandLineNumber getHeadquartersLandLineNumber (); - - /** - * Setter for headquarters' land-line number - *

- * @param headquartersLandLineNumber Headquarters' land-line number - */ - void setHeadquartersLandLineNumber (final DialableLandLineNumber headquartersLandLineNumber); - - /** - * Getter for headquarters' fax number - *

- * @return Headquarters' fax number - */ - DialableFaxNumber getHeadquartersFaxNumber (); - - /** - * Setter for headquarters' fax number - *

- * @param headquartersFaxNumber Headquarters' fax number - */ - void setHeadquartersFaxNumber (final DialableFaxNumber headquartersFaxNumber); - - /** - * Getter for user owner instance - *

- * @return User owner instance - */ - User getHeadquartersUserOwner (); - - /** - * Setter for user owner instance - *

- * @param headquartersUserOwner User owner instance - */ - void setHeadquartersUserOwner (final User headquartersUserOwner); - - /** - * Getter for branch office owning employee - *

- * @return Owning employee - */ - Employable getHeadquartersContactEmployee (); - - /** - * Setter for branch office contact person - *

- * @param branchContactEmployee Contact person - */ - void setHeadquartersContactEmployee (final Employable branchContactEmployee); - - /** - * Getter for opening times for this branch office - *

- * @return Opening times - */ - List getHeadquartersOpeningTimes (); - - /** - * Setter for opening times for this branch office - *

- * @param branchOpeningTimes Opening times - */ - void setHeadquartersOpeningTimes (final List branchOpeningTimes); - - /** - * Getter for timestamp when this entry has been created - *

- * @return Timestamp when this entry has been created - */ - Date getHeadquartersCreated (); - - /** - * Setter for timestamp when this entry has been created - *

- * @param headquartersCreated Timestamp when this entry has been created - */ - void setHeadquartersCreated (final Date headquartersCreated); - - @Override - boolean equals (final Object object); - - @Override - int hashCode (); - -}