package org.mxchange.jcontactsbusiness.model.basicdata;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import java.util.List;
import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
import org.mxchange.jcontactsbusiness.model.employee.Employee;
* <p>
* @return Timestamp when this entry has been created
*/
- Calendar getCompanyCreated ();
+ Date getCompanyCreated ();
/**
* Setter for timestamp when this entry has been created
* <p>
* @param contactCreated Timestamp when this entry has been created
*/
- void setCompanyCreated (final Calendar contactCreated);
+ void setCompanyCreated (final Date contactCreated);
/**
* Getter for comments
*/
package org.mxchange.jcontactsbusiness.model.basicdata;
-import java.util.Calendar;
+import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.persistence.Basic;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "company_entry_created", nullable = false, updatable = false)
- private Calendar companyCreated;
+ private Date companyCreated;
/**
* Company's main email address (example: info@company.com)
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getCompanyCreated () {
+ public Date getCompanyCreated () {
return this.companyCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setCompanyCreated (final Calendar companyCreated) {
+ public void setCompanyCreated (final Date companyCreated) {
this.companyCreated = companyCreated;
}
package org.mxchange.jcontactsbusiness.model.branchoffice;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import org.mxchange.jcontactsbusiness.model.employee.Employee;
import org.mxchange.jcountry.model.data.Country;
* <p>
* @return Timestamp when this entry has been created
*/
- Calendar getBranchCreated ();
+ Date getBranchCreated ();
/**
* Setter for timestamp when this entry has been created
* <p>
* @param branchCreated Timestamp when this entry has been created
*/
- void setBranchCreated (final Calendar branchCreated);
+ void setBranchCreated (final Date branchCreated);
@Override
boolean equals (final Object object);
package org.mxchange.jcontactsbusiness.model.branchoffice;
import java.text.MessageFormat;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "branch_entry_created", nullable = false, updatable = false)
- private Calendar branchCreated;
+ private Date branchCreated;
/**
* Branch office's main email address (example: branch-name@company.com)
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getBranchCreated () {
+ public Date getBranchCreated () {
return this.branchCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setBranchCreated (final Calendar branchCreated) {
+ public void setBranchCreated (final Date branchCreated) {
this.branchCreated = branchCreated;
}
*/
package org.mxchange.jcontactsbusiness.model.department;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
+import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import org.mxchange.jcontactsbusiness.model.basicdata.CompanyBasicData;
import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
import org.mxchange.jcontactsbusiness.model.branchoffice.CompanyBranchOffice;
import org.mxchange.jcontactsbusiness.model.employee.CompanyEmployee;
import org.mxchange.jcontactsbusiness.model.employee.Employee;
import org.mxchange.jcontactsbusiness.model.headquarters.CompanyHeadquartersData;
+import org.mxchange.jcontactsbusiness.model.headquarters.HeadquartersData;
import org.mxchange.jusercore.model.user.LoginUser;
import org.mxchange.jusercore.model.user.User;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
-import org.mxchange.jcontactsbusiness.model.headquarters.HeadquartersData;
/**
* A POJO for company departments
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "department_entry_created", nullable = false, updatable = false)
- private Calendar departmentCreated;
+ private Date departmentCreated;
/**
* Id number
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getDepartmentCreated () {
+ public Date getDepartmentCreated () {
return this.departmentCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setDepartmentCreated (final Calendar departmentCreated) {
+ public void setDepartmentCreated (final Date departmentCreated) {
this.departmentCreated = departmentCreated;
}
package org.mxchange.jcontactsbusiness.model.department;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
+import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
import org.mxchange.jcontactsbusiness.model.employee.Employee;
-import org.mxchange.jusercore.model.user.User;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import org.mxchange.jcontactsbusiness.model.headquarters.HeadquartersData;
+import org.mxchange.jusercore.model.user.User;
/**
* A POJI for company departments
* <p>
* @return Timestamp when this entry has been created
*/
- Calendar getDepartmentCreated ();
+ Date getDepartmentCreated ();
/**
* Setter for timestamp when this entry has been created
* <p>
* @param departmentCreated Timestamp when this entry has been created
*/
- void setDepartmentCreated (final Calendar departmentCreated);
+ void setDepartmentCreated (final Date departmentCreated);
@Override
boolean equals (final Object object);
*/
package org.mxchange.jcontactsbusiness.model.employee;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "employee_entry_created", nullable = false, updatable = false)
- private Calendar employeeCreated;
+ private Date employeeCreated;
/**
* Department the employee works at
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getEmployeeCreated () {
+ public Date getEmployeeCreated () {
return this.employeeCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setEmployeeCreated (final Calendar employeeCreated) {
+ public void setEmployeeCreated (final Date employeeCreated) {
this.employeeCreated = employeeCreated;
}
package org.mxchange.jcontactsbusiness.model.employee;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jcontacts.model.contact.Contact;
import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
* <p>
* @return Timestamp when this entry has been created
*/
- Calendar getEmployeeCreated ();
+ Date getEmployeeCreated ();
/**
* Setter for timestamp when this entry has been created
* <p>
* @param employeeCreated Timestamp when this entry has been created
*/
- void setEmployeeCreated (final Calendar employeeCreated);
+ void setEmployeeCreated (final Date employeeCreated);
@Override
boolean equals (final Object object);
*/
package org.mxchange.jcontactsbusiness.model.headquarters;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "headquarters_entry_created", nullable = false, updatable = false)
- private Calendar headquartersCreated;
+ private Date headquartersCreated;
/**
* Headquarters' fax number
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getHeadquartersCreated () {
+ public Date getHeadquartersCreated () {
return this.headquartersCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setHeadquartersCreated (final Calendar headquartersCreated) {
+ public void setHeadquartersCreated (final Date headquartersCreated) {
this.headquartersCreated = headquartersCreated;
}
package org.mxchange.jcontactsbusiness.model.headquarters;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jcountry.model.data.Country;
import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber;
* <p>
* @return Timestamp when this entry has been created
*/
- Calendar getHeadquartersCreated ();
+ Date getHeadquartersCreated ();
/**
* Setter for timestamp when this entry has been created
* <p>
* @param headquartersCreated Timestamp when this entry has been created
*/
- void setHeadquartersCreated (final Calendar headquartersCreated);
+ void setHeadquartersCreated (final Date headquartersCreated);
@Override
boolean equals (final Object object);
*/
package org.mxchange.jcontactsbusiness.model.jobposition;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.Column;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "job_position_created", nullable = false, updatable = false)
- private Calendar jobPositionCreated;
+ private Date jobPositionCreated;
/**
* Id number
*/
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "job_position_updated", insertable = false)
- private Calendar jobPositionUpdated;
+ private Date jobPositionUpdated;
@Override
public boolean equals (final Object object) {
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getJobPositionCreated () {
+ public Date getJobPositionCreated () {
return this.jobPositionCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setJobPositionCreated (final Calendar jobPositionCreated) {
+ public void setJobPositionCreated (final Date jobPositionCreated) {
this.jobPositionCreated = jobPositionCreated;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getJobPositionUpdated () {
+ public Date getJobPositionUpdated () {
return this.jobPositionUpdated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setJobPositionUpdated (final Calendar jobPositionUpdated) {
+ public void setJobPositionUpdated (final Date jobPositionUpdated) {
this.jobPositionUpdated = jobPositionUpdated;
}
package org.mxchange.jcontactsbusiness.model.jobposition;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
/**
* A POJI for job positions
* <p>
* @return Timestamp when this entry has been created
*/
- Calendar getJobPositionCreated ();
+ Date getJobPositionCreated ();
/**
* Setter for timestamp when this entry has been created
* <p>
* @param jobPositionCreated Timestamp when this entry has been created
*/
- void setJobPositionCreated (final Calendar jobPositionCreated);
+ void setJobPositionCreated (final Date jobPositionCreated);
/**
* Getter for timestamp when this entry has been updated
* <p>
* @return Timestamp when this entry has been updated
*/
- Calendar getJobPositionUpdated ();
+ Date getJobPositionUpdated ();
/**
* Setter for timestamp when this entry has been updated
* <p>
* @param jobPositionUpdated Timestamp when this entry has been updated
*/
- void setJobPositionUpdated (final Calendar jobPositionUpdated);
+ void setJobPositionUpdated (final Date jobPositionUpdated);
@Override
boolean equals (final Object object);
package org.mxchange.jcontactsbusiness.model.logo;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jusercore.model.user.User;
/**
* <p>
* @return Timestamp when this entry has been created
*/
- Calendar getLogoCreated ();
+ Date getLogoCreated ();
/**
* Setter for timestamp when this entry has been created
* <p>
* @param logoCreated Timestamp when this entry has been created
*/
- void setLogoCreated (final Calendar logoCreated);
+ void setLogoCreated (final Date logoCreated);
@Override
boolean equals (final Object object);
*/
package org.mxchange.jcontactsbusiness.model.logo;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "logo_entry_created", nullable = false, updatable = false)
- private Calendar logoCreated;
+ private Date logoCreated;
/**
* Local file name of the logo (relative to /resources/logos/)
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getLogoCreated () {
+ public Date getLogoCreated () {
return this.logoCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setLogoCreated (final Calendar logoCreated) {
+ public void setLogoCreated (final Date logoCreated) {
this.logoCreated = logoCreated;
}
*/
package org.mxchange.jcontactsbusiness.model.opening_times;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.Column;
@Basic (optional = false)
@Column (name = "opening_times_end_time", nullable = false)
@Temporal (TemporalType.TIME)
- private Calendar endTime;
+ private Date endTime;
/**
* Id number
@Basic (optional = false)
@Column (name = "opening_times_start_time", nullable = false)
@Temporal (TemporalType.TIME)
- private Calendar startTime;
+ private Date startTime;
/**
* Default constructor
* @param startDay Start day
* @param startTime Start time
*/
- public BusinessOpeningTimes (final DayOfTheWeek endDay, final Calendar endTime, final Long id, final DayOfTheWeek startDay, final Calendar startTime) {
+ public BusinessOpeningTimes (final DayOfTheWeek endDay, final Date endTime, final Long id, final DayOfTheWeek startDay, final Date startTime) {
// Call other constructor
this(endDay, endTime, startDay, startTime);
* @param startDay Start day
* @param startTime Start time
*/
- public BusinessOpeningTimes (final DayOfTheWeek endDay, final Calendar endTime, final DayOfTheWeek startDay, final Calendar startTime) {
+ public BusinessOpeningTimes (final DayOfTheWeek endDay, final Date endTime, final DayOfTheWeek startDay, final Date startTime) {
// Set all fields
this.endDay = endDay;
this.endTime = endTime;
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getEndTime () {
+ public Date getEndTime () {
return this.endTime;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setEndTime (final Calendar endTime) {
+ public void setEndTime (final Date endTime) {
this.endTime = endTime;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getStartTime () {
+ public Date getStartTime () {
return this.startTime;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setStartTime (final Calendar startTime) {
+ public void setStartTime (final Date startTime) {
this.startTime = startTime;
}
package org.mxchange.jcontactsbusiness.model.opening_times;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jcontactsbusiness.model.opening_times.dayofweek.DayOfTheWeek;
/**
* <p>
* @return Starting time
*/
- Calendar getStartTime ();
+ Date getStartTime ();
/**
* Setter for starting time
* <p>
* @param startTime Starting time
*/
- void setStartTime (final Calendar startTime);
+ void setStartTime (final Date startTime);
/**
* Getter for ending time
* <p>
* @return Ending time
*/
- Calendar getEndTime ();
+ Date getEndTime ();
/**
* Setter for ending time
* <p>
* @param endTime Ending time
*/
- void setEndTime (final Calendar endTime);
+ void setEndTime (final Date endTime);
@Override
boolean equals (final Object obj);