final BusinessContact other = (BusinessContact) object;
- return Objects.equals(this.getBasicBusinessData(), other.getBasicBusinessData());
+ if (!Objects.equals(this.getCompanyContactId(), other.getCompanyContactId())) {
+ return false;
+ } else if (!Objects.equals(this.getCompanyContact(), other.getCompanyContact())) {
+ return false;
+ } else if (!Objects.equals(this.getCompanyFounder(), other.getCompanyFounder())) {
+ return false;
+ } else if (!Objects.equals(this.getBasicBusinessData(), other.getBasicBusinessData())) {
+ return false;
+ } else if (!Objects.equals(this.getHeadQuartersData(), other.getHeadQuartersData())) {
+ return false;
+ }
+
+ return true;
}
@Override
@Override
public int hashCode () {
int hash = 3;
+
+ hash = 37 * hash + Objects.hashCode(this.getCompanyContactId());
+ hash = 37 * hash + Objects.hashCode(this.getCompanyContact());
+ hash = 37 * hash + Objects.hashCode(this.getCompanyFounder());
hash = 37 * hash + Objects.hashCode(this.getBasicBusinessData());
+ hash = 37 * hash + Objects.hashCode(this.getHeadQuartersData());
+
return hash;
}
}
* <p>
* @return User owner instance
*/
- User getBasicUserOwner ();
+ User getCompanyBasicUserOwner ();
/**
* Setter for user owner instance
* <p>
- * @param basicUserOwner User owner instance
+ * @param companyBasicUserOwner User owner instance
*/
- void setBasicUserOwner (final User basicUserOwner);
+ void setCompanyBasicUserOwner (final User companyBasicUserOwner);
/**
* Getter for timestamp when this entry has been created
*/
@JoinColumn (name = "company_user_id", nullable = false, updatable = false)
@OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
- private User basicUserOwner;
+ private User companyBasicUserOwner;
/**
* Id number
final BusinessBasicData other = (BusinessBasicData) object;
- if (!Objects.equals(this.getCompanyLegalStatus(), other.getCompanyLegalStatus())) {
+ if (!Objects.equals(this.getCompanyBasicId(), other.getCompanyBasicId())) {
+ return false;
+ } else 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;
+ } else if (!Objects.equals(this.getCompanyBasicUserOwner(), other.getCompanyBasicUserOwner())) {
+ return false;
}
return true;
}
- @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;
- }
-
@Override
@SuppressWarnings ("ReturnOfDateField")
public Calendar getBasicCreated () {
}
@Override
- public User getBasicUserOwner () {
- return this.basicUserOwner;
+ public User getCompanyBasicUserOwner () {
+ return this.companyBasicUserOwner;
}
@Override
- public void setBasicUserOwner (final User basicUserOwner) {
- this.basicUserOwner = basicUserOwner;
+ public void setCompanyBasicUserOwner (final User companyBasicUserOwner) {
+ this.companyBasicUserOwner = companyBasicUserOwner;
}
@Override
this.companyWebsiteUrl = companyWebsiteUrl;
}
+ @Override
+ public int hashCode () {
+ int hash = 5;
+
+ hash = 53 * hash + Objects.hashCode(this.getCompanyBasicId());
+ hash = 53 * hash + Objects.hashCode(this.getCompanyLegalStatus());
+ hash = 53 * hash + Objects.hashCode(this.getCompanyName());
+ hash = 53 * hash + Objects.hashCode(this.getCompanyTaxNumber());
+ hash = 53 * hash + Objects.hashCode(this.getCompanyBasicUserOwner());
+
+ return hash;
+ }
+
}
final BranchOffice other = (BranchOffice) object;
- if (!Objects.equals(this.getBranchCity(), other.getBranchCity())) {
+ if (!Objects.equals(this.getBranchId(), other.getBranchId())) {
+ return false;
+ } else if (!Objects.equals(this.getBranchCity(), other.getBranchCity())) {
return false;
} else if (!Objects.equals(this.getBranchCountry(), other.getBranchCountry())) {
return false;
return true;
}
- @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;
- }
-
@Override
public String getBranchCity () {
return this.branchCity;
this.branchZipCode = branchZipCode;
}
+ @Override
+ public int hashCode () {
+ int hash = 7;
+
+ 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.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;
+ }
+
}
final Department other = (Department) object;
- if (!Objects.equals(this.getDepartmentCompany(), other.getDepartmentCompany())) {
+ if (!Objects.equals(this.getDepartmentId(), other.getDepartmentId())) {
+ return false;
+ } else if (!Objects.equals(this.getDepartmentCompany(), other.getDepartmentCompany())) {
return false;
} else if (!Objects.equals(this.getDepartmentName(), other.getDepartmentName())) {
return false;
return true;
}
- @Override
- public int hashCode () {
- int hash = 5;
- hash = 53 * hash + Objects.hashCode(this.getDepartmentCompany());
- hash = 53 * hash + Objects.hashCode(this.getDepartmentName());
- return hash;
- }
-
@Override
public HeadQuartersData getDepartentHeadquarters () {
return this.departentHeadquarters;
this.departmentUserOwner = departmentUserOwner;
}
+ @Override
+ public int hashCode () {
+ int hash = 5;
+
+ hash = 53 * hash + Objects.hashCode(this.getDepartmentId());
+ hash = 53 * hash + Objects.hashCode(this.getDepartmentCompany());
+ hash = 53 * hash + Objects.hashCode(this.getDepartmentName());
+
+ return hash;
+ }
+
}
final Employee other = (Employee) object;
- if (!Objects.equals(this.getEmployeeCompany(), other.getEmployeeCompany())) {
+ if (!Objects.equals(this.getEmployeeId(), other.getEmployeeId())) {
+ return false;
+ } else if (!Objects.equals(this.getEmployeeCompany(), other.getEmployeeCompany())) {
return false;
} else if (!Objects.equals(this.getEmployeeNumber(), other.getEmployeeNumber())) {
return false;
return true;
}
- @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;
- }
-
@Override
public BranchOffice getEmployeeBranchOffice () {
return this.employeeBranchOffice;
this.employeeUserOwner = employeeUserOwner;
}
+ @Override
+ public int hashCode () {
+ int hash = 3;
+
+ hash = 97 * hash + Objects.hashCode(this.getEmployeeId());
+ hash = 97 * hash + Objects.hashCode(this.getEmployeeCompany());
+ hash = 97 * hash + Objects.hashCode(this.getEmployeeNumber());
+ hash = 97 * hash + Objects.hashCode(this.getEmployeePersonalData());
+
+ return hash;
+ }
+
}
final HeadQuartersData other = (HeadQuartersData) object;
- if (!Objects.equals(this.getHeadquartersCity(), other.getHeadquartersCity())) {
+ if (!Objects.equals(this.getHeadquartersId(), other.getHeadquartersId())) {
+ return false;
+ } else if (!Objects.equals(this.getHeadquartersCity(), other.getHeadquartersCity())) {
return false;
} else if (!Objects.equals(this.getHeadquartersCountry(), other.getHeadquartersCountry())) {
return false;
return true;
}
- @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;
- }
-
@Override
public String getHeadquartersCity () {
return this.headquartersCity;
this.headquartersZipCode = headquartersZipCode;
}
+ @Override
+ public int hashCode () {
+ int hash = 7;
+
+ hash = 47 * hash + Objects.hashCode(this.getHeadquartersId());
+ 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;
+ }
+
}
final JobPosition other = (JobPosition) object;
- if (!Objects.equals(this.getJobPositionName(), other.getJobPositionName())) {
+ if (!Objects.equals(this.getJobPositionId(), other.getJobPositionId())) {
return false;
- } else if (!Objects.equals(this.getJobPositionId(), other.getJobPositionId())) {
+ } else if (!Objects.equals(this.getJobPositionName(), other.getJobPositionName())) {
return false;
}
return true;
}
- @Override
- public int hashCode () {
- int hash = 7;
-
- hash = 37 * hash + Objects.hashCode(this.getJobPositionId());
- hash = 37 * hash + Objects.hashCode(this.getJobPositionName());
-
- return hash;
- }
-
@Override
@SuppressWarnings ("ReturnOfDateField")
public Calendar getJobPositionCreated () {
this.jobPositionUpdated = jobPositionUpdated;
}
+ @Override
+ public int hashCode () {
+ int hash = 7;
+
+ hash = 37 * hash + Objects.hashCode(this.getJobPositionId());
+ hash = 37 * hash + Objects.hashCode(this.getJobPositionName());
+
+ return hash;
+ }
+
}
final BusinessLogo other = (BusinessLogo) object;
- return Objects.equals(this.getLogoFileName(), other.getLogoFileName());
- }
+ if (!Objects.equals(this.getLogoId(), other.getLogoId())) {
+ return false;
+ } else if (!Objects.equals(this.getLogoUploader(), other.getLogoUploader())) {
+ return false;
+ } else if (!Objects.equals(this.getLogoFileName(), other.getLogoFileName())) {
+ return false;
+ }
- @Override
- public int hashCode () {
- int hash = 3;
- hash = 53 * hash + Objects.hashCode(this.getLogoFileName());
- return hash;
+ return true;
}
@Override
this.logoUploader = logoUploader;
}
+ @Override
+ public int hashCode () {
+ int hash = 3;
+
+ hash = 53 * hash + Objects.hashCode(this.getLogoId());
+ hash = 53 * hash + Objects.hashCode(this.getLogoFileName());
+ hash = 53 * hash + Objects.hashCode(this.getLogoUploader());
+
+ return hash;
+ }
+
}
/**
* Constructor with all field
* <p>
- * @param endDay End day
- * @param endTime End time
- * @param id Id number
- * @param startDay Start day
+ * @param endDay End day
+ * @param endTime End time
+ * @param id Id number
+ * @param startDay Start day
* @param startTime Start time
*/
public BusinessOpeningTimes (final DayOfWeek endDay, final Calendar endTime, final Long id, final DayOfWeek startDay, final Calendar startTime) {
/**
* Constructor with all fields except id number
* <p>
- * @param endDay End day
- * @param endTime End time
- * @param startDay Start day
+ * @param endDay End day
+ * @param endTime End time
+ * @param startDay Start day
* @param startTime Start time
*/
public BusinessOpeningTimes (final DayOfWeek endDay, final Calendar endTime, final DayOfWeek startDay, final Calendar startTime) {
return true;
}
- @Override
- public int hashCode () {
- int hash = 7;
-
- hash = 97 * hash + Objects.hashCode(this.getId());
- hash = 97 * hash + Objects.hashCode(this.getStartDay());
- hash = 97 * hash + Objects.hashCode(this.getEndDay());
- hash = 97 * hash + Objects.hashCode(this.getStartTime());
- hash = 97 * hash + Objects.hashCode(this.getEndTime());
-
- return hash;
- }
-
@Override
public DayOfWeek getEndDay () {
return this.endDay;
this.startTime = startTime;
}
+ @Override
+ public int hashCode () {
+ int hash = 7;
+
+ hash = 97 * hash + Objects.hashCode(this.getId());
+ hash = 97 * hash + Objects.hashCode(this.getStartDay());
+ hash = 97 * hash + Objects.hashCode(this.getEndDay());
+ hash = 97 * hash + Objects.hashCode(this.getStartTime());
+ hash = 97 * hash + Objects.hashCode(this.getEndTime());
+
+ return hash;
+ }
+
}