* @param headQuartersData Headquarters data
*/
public void setHeadQuartersData (final HeadQuartersData headQuartersData);
+
+ @Override
+ public boolean equals (final Object object);
+
+ @Override
+ public int hashCode ();
}
package org.mxchange.jcontactsbusiness;
import java.util.List;
+import java.util.Objects;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public boolean equals (final Object object) {
+ if (object == null) {
+ return false;
+ } else if (getClass() != object.getClass()) {
+ return false;
+ }
+
+ final BusinessContact other = (BusinessContact) object;
+
+ return Objects.equals(this.getBasicBusinessData(), other.getBasicBusinessData());
+ }
+
@Override
public BusinessBasicData getBasicBusinessData () {
return this.basicBusinessData;
public void setHeadQuartersData (final HeadQuartersData headQuartersData) {
this.headQuartersData = headQuartersData;
}
+
+ @Override
+ public int hashCode () {
+ int hash = 3;
+ hash = 37 * hash + Objects.hashCode(this.getBasicBusinessData());
+ return hash;
+ }
}
* @param companyWebsiteUrl Website URL
*/
public void setCompanyWebsiteUrl (final String companyWebsiteUrl);
+
+ @Override
+ public boolean equals (final Object object);
+
+ @Override
+ public int hashCode ();
}
package org.mxchange.jcontactsbusiness.basicdata;
import java.util.List;
+import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public boolean equals (final Object object) {
+ if (object == null) {
+ return false;
+ } else if (getClass() != object.getClass()) {
+ return false;
+ }
+
+ final BusinessBasicData other = (BusinessBasicData) object;
+
+ if (!Objects.equals(this.getCompanyLegalStatus(), other.getCompanyLegalStatus())) {
+ return false;
+ } else if (!Objects.equals(this.getCompanyName(), other.getCompanyName())) {
+ return false;
+ } else if (!Objects.equals(this.getCompanyTaxNumber(), other.getCompanyTaxNumber())) {
+ return false;
+ }
+
+ return true;
+ }
+
@Override
public Long getCompanyBasicId () {
return this.companyBasicId;
public void setCompanyWebsiteUrl (final String companyWebsiteUrl) {
this.companyWebsiteUrl = companyWebsiteUrl;
}
+
+ @Override
+ public int hashCode () {
+ int hash = 5;
+ hash = 53 * hash + Objects.hashCode(this.getCompanyLegalStatus());
+ hash = 53 * hash + Objects.hashCode(this.getCompanyName());
+ hash = 53 * hash + Objects.hashCode(this.getCompanyTaxNumber());
+ return hash;
+ }
}
* @param branchCountryCode Branch office's country code
*/
public void setBranchCountry (final Country branchCountryCode);
+
+ @Override
+ public boolean equals (final Object object);
+
+ @Override
+ public int hashCode ();
}
*/
package org.mxchange.jcontactsbusiness.branch;
+import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public boolean equals (final Object object) {
+ if (object == null) {
+ return false;
+ } else if (getClass() != object.getClass()) {
+ return false;
+ }
+
+ final BranchOffice other = (BranchOffice) object;
+
+ if (!Objects.equals(this.getBranchCity(), other.getBranchCity())) {
+ return false;
+ }
+ if (!Objects.equals(this.getBranchCountry(), other.getBranchCountry())) {
+ return false;
+ }
+ if (!Objects.equals(this.getBranchHouseNumber(), other.getBranchHouseNumber())) {
+ return false;
+ }
+ if (!Objects.equals(this.getBranchStore(), other.getBranchStore())) {
+ return false;
+ }
+ if (!Objects.equals(this.getBranchStreet(), other.getBranchStreet())) {
+ return false;
+ }
+ if (!Objects.equals(this.getBranchSuiteNumber(), other.getBranchSuiteNumber())) {
+ return false;
+ }
+ if (!Objects.equals(this.getBranchZipCode(), other.getBranchZipCode())) {
+ return false;
+ }
+ return true;
+ }
+
@Override
public String getBranchCity () {
return this.branchCity;
public void setBranchZipCode (final Integer branchZipCode) {
this.branchZipCode = branchZipCode;
}
+
+ @Override
+ public int hashCode () {
+ int hash = 7;
+ hash = 53 * hash + Objects.hashCode(this.getBranchCity());
+ hash = 53 * hash + Objects.hashCode(this.getBranchCountry());
+ hash = 53 * hash + Objects.hashCode(this.getBranchHouseNumber());
+ hash = 53 * hash + Objects.hashCode(this.getBranchStore());
+ hash = 53 * hash + Objects.hashCode(this.getBranchStreet());
+ hash = 53 * hash + Objects.hashCode(this.getBranchSuiteNumber());
+ hash = 53 * hash + Objects.hashCode(this.getBranchZipCode());
+ return hash;
+ }
}
*/
package org.mxchange.jcontactsbusiness.department;
+import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public boolean equals (final Object object) {
+ if (object == null) {
+ return false;
+ } else if (getClass() != object.getClass()) {
+ return false;
+ }
+
+ final Department other = (Department) object;
+
+ if (!Objects.equals(this.getDepartmentCompany(), other.getDepartmentCompany())) {
+ return false;
+ } else if (!Objects.equals(this.getDepartmentName(), other.getDepartmentName())) {
+ return false;
+ }
+
+ return true;
+ }
+
@Override
public BusinessContact getDepartmentCompany () {
return this.departmentCompany;
public void setDepartmentName (final String departmentName) {
this.departmentName = departmentName;
}
+
+ @Override
+ public int hashCode () {
+ int hash = 5;
+ hash = 53 * hash + Objects.hashCode(this.getDepartmentCompany());
+ hash = 53 * hash + Objects.hashCode(this.getDepartmentName());
+ return hash;
+ }
}
* @param departmentName Department name
*/
public void setDepartmentName (final String departmentName);
+
+ @Override
+ public boolean equals (final Object object);
+
+ @Override
+ public int hashCode ();
}
*/
package org.mxchange.jcontactsbusiness.employee;
+import java.util.Objects;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jcontacts.contact.UserContact;
+import org.mxchange.jcontactsbusiness.BusinessContact;
+import org.mxchange.jcontactsbusiness.CompanyContact;
import org.mxchange.jcontactsbusiness.branch.BranchOffice;
import org.mxchange.jcontactsbusiness.branch.CompanyBranchOffice;
import org.mxchange.jcontactsbusiness.department.CompanyDepartment;
@OneToOne (targetEntity = CompanyBranchOffice.class, cascade = CascadeType.ALL)
private BranchOffice employeeBranchOffice;
+ /**
+ * Company the employee is working at
+ */
+ @JoinColumn (name = "employee_company_id", nullable = false, updatable = false)
+ @OneToOne (targetEntity = CompanyContact.class, cascade = CascadeType.ALL, optional = false)
+ private BusinessContact employeeCompany;
+
/**
* Department the employee works at
*/
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public boolean equals (final Object object) {
+ if (object == null) {
+ return false;
+ } else if (getClass() != object.getClass()) {
+ return false;
+ }
+
+ final Employee other = (Employee) object;
+
+ if (!Objects.equals(this.getEmployeeCompany(), other.getEmployeeCompany())) {
+ return false;
+ } else if (!Objects.equals(this.getEmployeeNumber(), other.getEmployeeNumber())) {
+ return false;
+ } else if (!Objects.equals(this.getEmployeePersonalData(), other.getEmployeePersonalData())) {
+ return false;
+ }
+
+ return true;
+ }
+
@Override
public BranchOffice getEmployeeBranchOffice () {
return this.employeeBranchOffice;
this.employeeBranchOffice = employeeBranchOffice;
}
+ @Override
+ public BusinessContact getEmployeeCompany () {
+ return this.employeeCompany;
+ }
+
+ @Override
+ public void setEmployeeCompany (final BusinessContact employeeCompany) {
+ this.employeeCompany = employeeCompany;
+ }
+
@Override
public Department getEmployeeDepartment () {
return this.employeeDepartment;
public void setEmployeePosition (final JobPosition employeePosition) {
this.employeePosition = employeePosition;
}
+
+ @Override
+ public int hashCode () {
+ int hash = 3;
+ hash = 97 * hash + Objects.hashCode(this.getEmployeeCompany());
+ hash = 97 * hash + Objects.hashCode(this.getEmployeeNumber());
+ hash = 97 * hash + Objects.hashCode(this.getEmployeePersonalData());
+ return hash;
+ }
}
import java.io.Serializable;
import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jcontactsbusiness.BusinessContact;
import org.mxchange.jcontactsbusiness.branch.BranchOffice;
import org.mxchange.jcontactsbusiness.department.Department;
import org.mxchange.jcontactsbusiness.jobposition.JobPosition;
*/
public void setEmployeeBranchOffice (final BranchOffice employeeBranchOffice);
+ /**
+ * Getter for employee's company
+ * <p>
+ * @return Company instance
+ */
+ public BusinessContact getEmployeeCompany ();
+
+ /**
+ * Setter for employee's company
+ * <p>
+ * @param employeeCompany Company instance
+ */
+ public void setEmployeeCompany (final BusinessContact employeeCompany);
+
/**
* Getter for employee's department
* <p>
* @param employeePosition Employee's position
*/
public void setEmployeePosition (final JobPosition employeePosition);
+
+ @Override
+ public boolean equals (final Object object);
+
+ @Override
+ public int hashCode ();
}
*/
package org.mxchange.jcontactsbusiness.headquarters;
+import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public boolean equals (final Object object) {
+ if (object == null) {
+ return false;
+ } else if (getClass() != object.getClass()) {
+ return false;
+ }
+
+ final HeadQuartersData other = (HeadQuartersData) object;
+
+ if (!Objects.equals(this.getHeadquartersCity(), other.getHeadquartersCity())) {
+ return false;
+ } else if (!Objects.equals(this.getHeadquartersCountry(), other.getHeadquartersCountry())) {
+ return false;
+ } else if (!Objects.equals(this.getHeadquartersHouseNumber(), other.getHeadquartersHouseNumber())) {
+ return false;
+ } else if (!Objects.equals(this.getHeadquartersStore(), other.getHeadquartersStore())) {
+ return false;
+ } else if (!Objects.equals(this.getHeadquartersStreet(), other.getHeadquartersStreet())) {
+ return false;
+ } else if (!Objects.equals(this.getHeadquartersSuiteNumber(), other.getHeadquartersSuiteNumber())) {
+ return false;
+ } else if (!Objects.equals(this.getHeadquartersZipCode(), other.getHeadquartersZipCode())) {
+ return false;
+ }
+
+ return true;
+ }
+
@Override
public String getHeadquartersCity () {
return this.headquartersCity;
public void setHeadquartersZipCode (final Integer headquartersZipCode) {
this.headquartersZipCode = headquartersZipCode;
}
+
+ @Override
+ public int hashCode () {
+ int hash = 7;
+ hash = 47 * hash + Objects.hashCode(this.getHeadquartersCity());
+ hash = 47 * hash + Objects.hashCode(this.getHeadquartersCountry());
+ hash = 47 * hash + Objects.hashCode(this.getHeadquartersHouseNumber());
+ hash = 47 * hash + Objects.hashCode(this.getHeadquartersStore());
+ hash = 47 * hash + Objects.hashCode(this.getHeadquartersStreet());
+ hash = 47 * hash + Objects.hashCode(this.getHeadquartersSuiteNumber());
+ hash = 47 * hash + Objects.hashCode(this.getHeadquartersZipCode());
+ return hash;
+ }
}
* @param headquartersFaxNumber Headquarters' fax number
*/
public void setHeadquartersFaxNumber (final DialableFaxNumber headquartersFaxNumber);
+
+ @Override
+ public boolean equals (final Object object);
+
+ @Override
+ public int hashCode ();
}
*/
package org.mxchange.jcontactsbusiness.jobposition;
+import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public boolean equals (final Object object) {
+ if (object == null) {
+ return false;
+ } else if (getClass() != object.getClass()) {
+ return false;
+ }
+
+ final JobPosition other = (JobPosition) object;
+
+ if (!Objects.equals(this.getJobPositionName(), other.getJobPositionName())) {
+ return false;
+ }
+ return true;
+ }
+
@Override
public Long getJobPositionId () {
return this.jobPositionId;
this.jobPositionName = jobPositionName;
}
+ @Override
+ public int hashCode () {
+ int hash = 7;
+ hash = 37 * hash + Objects.hashCode(this.getJobPositionName());
+ return hash;
+ }
+
}
* @param jobPositionName Job position name
*/
public void setJobPositionName (final String jobPositionName);
+
+ @Override
+ public boolean equals (final Object object);
+
+ @Override
+ public int hashCode ();
}
* @param logoId Logo's id number
*/
public void setLogoId (final Long logoId);
+
+ @Override
+ public boolean equals (final Object object);
+
+ @Override
+ public int hashCode ();
}
*/
package org.mxchange.jcontactsbusiness.logo;
+import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public boolean equals (final Object object) {
+ if (object == null) {
+ return false;
+ } else if (getClass() != object.getClass()) {
+ return false;
+ }
+
+ final BusinessLogo other = (BusinessLogo) object;
+
+ return Objects.equals(this.getLogoFileName(), other.getLogoFileName());
+ }
+
@Override
public String getLogoFileName () {
return this.logoFileName;
public void setLogoId (final Long logoId) {
this.logoId = logoId;
}
+
+ @Override
+ public int hashCode () {
+ int hash = 3;
+ hash = 53 * hash + Objects.hashCode(this.getLogoFileName());
+ return hash;
+ }
}