*/
package org.mxchange.jjobs.model.jobposition;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jcontactsbusiness.model.jobposition.JobPosition;
import org.mxchange.jjobs.model.jobposition.status.JobPositionStatus;
import org.mxchange.jusercore.model.user.User;
* <p>
* @return Job position start
*/
- Calendar getJobPositionStart ();
+ Date getJobPositionStart ();
/**
* Setter for job position start
* <p>
* @param jobPositionStart Job position start
*/
- void setJobPositionStart (final Calendar jobPositionStart);
+ void setJobPositionStart (final Date jobPositionStart);
/**
* Getter for job position status
* <p>
* @return When this job position was deleted by user
*/
- Calendar getJobPositionDeleted ();
+ Date getJobPositionDeleted ();
/**
* Setter for when this job position was deleted by user
* <p>
* @param jobPositionDeleted When this job position was deleted by user
*/
- void setJobPositionDeleted (final Calendar jobPositionDeleted);
+ void setJobPositionDeleted (final Date jobPositionDeleted);
/**
* Getter for when this job position has expired
* <p>
* @return When this job position has expired
*/
- Calendar getJobPositionExpired ();
+ Date getJobPositionExpired ();
/**
* Setter for when this job position has expired
* <p>
* @param jobPositionExpired When this job position has expired
*/
- void setJobPositionExpired (final Calendar jobPositionExpired);
+ void setJobPositionExpired (final Date jobPositionExpired);
/**
* Getter for when employee was hired for this job position
* <p>
* @return When employee was hired for this job position
*/
- Calendar getJobPositionHired ();
+ Date getJobPositionHired ();
/**
* Setter for when employee was hired for this job position
* <p>
* @param jobPositionHired When employee was hired for this job position
*/
- void setJobPositionHired (final Calendar jobPositionHired);
+ void setJobPositionHired (final Date jobPositionHired);
/**
* Getter for user who added this job position
+++ /dev/null
-/*
- * 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 <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jjobs.model.jobposition;
-
-import java.util.Calendar;
-import java.util.Objects;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.EnumType;
-import javax.persistence.Enumerated;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.OneToOne;
-import javax.persistence.Table;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-import javax.persistence.Transient;
-import org.mxchange.jjobs.model.jobposition.status.JobPositionStatus;
-import org.mxchange.jusercore.model.user.LoginUser;
-import org.mxchange.jusercore.model.user.User;
-
-/**
- * A POJO entity for job positions
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Entity (name = "open_job_position")
-@Table (
- name = "open_job_position"
-)
-@SuppressWarnings ("PersistenceUnitPresent")
-public class JobPosition implements HireableJobPosition {
-
- /**
- * Serial number
- */
- @Transient
- private static final long serialVersionUID = 547_102_736_712_809_694L;
-
- /**
- * User who has added this job position
- */
- @JoinColumn (name = "job_position_added_user_id", referencedColumnName = "user_id", updatable = false)
- @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
- private User jobPositionAddedUser;
-
- /**
- * When this entry has been created
- */
- @Basic (optional = false)
- @Column (name = "job_position_created", nullable = false, updatable = false)
- @Temporal (TemporalType.TIMESTAMP)
- private Calendar jobPositionCreated;
-
- /**
- * When this job position (offer) was deleted
- */
- @Column (name = "job_position_deleted")
- @Temporal (TemporalType.TIMESTAMP)
- private Calendar jobPositionDeleted;
-
- /**
- * When this job position (offer) has expired
- */
- @Column (name = "job_position_expired")
- @Temporal (TemporalType.TIMESTAMP)
- private Calendar jobPositionExpired;
-
- /**
- * When a new employed was hired for this job position
- */
- @Column (name = "job_position_hired")
- @Temporal (TemporalType.TIMESTAMP)
- private Calendar jobPositionHired;
-
- /**
- * Id number (primary key)
- */
- @Id
- @GeneratedValue (strategy = GenerationType.IDENTITY)
- @Column (name = "job_position_id", nullable = false, updatable = false)
- private Long jobPositionId;
-
- /**
- * Name of the position (example: Store Worker)
- */
- @Basic (optional = false)
- @Column (name = "job_position_name", nullable = false, unique = true)
- private String jobPositionName;
-
- /**
- * When this job position (offer) starts
- */
- @Basic (optional = false)
- @Column (name = "job_position_start", nullable = false)
- @Temporal (TemporalType.DATE)
- private Calendar jobPositionStart;
-
- /**
- * Job position status
- */
- @Basic (optional = false)
- @Column (name = "job_position_status", nullable = false)
- @Enumerated (EnumType.STRING)
- private JobPositionStatus jobPositionStatus;
-
- /**
- * When this entry has been created
- */
- @Column (name = "job_position_updated", insertable = false)
- @Temporal (TemporalType.TIMESTAMP)
- private Calendar jobPositionUpdated;
-
- @Override
- public boolean equals (final Object object) {
- if (this == object) {
- return true;
- } else if (null == object) {
- return false;
- } else if (this.getClass() != object.getClass()) {
- return false;
- }
-
- final HireableJobPosition other = (HireableJobPosition) object;
-
- if (!Objects.equals(this.getJobPositionName(), other.getJobPositionName())) {
- return false;
- } else if (!Objects.equals(this.getJobPositionId(), other.getJobPositionId())) {
- return false;
- }
-
- return true;
- }
-
- @Override
- public User getJobPositionAddedUser () {
- return this.jobPositionAddedUser;
- }
-
- @Override
- public void setJobPositionAddedUser (final User jobPositionAddedUser) {
- this.jobPositionAddedUser = jobPositionAddedUser;
- }
-
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Calendar getJobPositionCreated () {
- return this.jobPositionCreated;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setJobPositionCreated (final Calendar jobPositionCreated) {
- this.jobPositionCreated = jobPositionCreated;
- }
-
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Calendar getJobPositionDeleted () {
- return this.jobPositionDeleted;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setJobPositionDeleted (final Calendar jobPositionDeleted) {
- this.jobPositionDeleted = jobPositionDeleted;
- }
-
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Calendar getJobPositionExpired () {
- return this.jobPositionExpired;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setJobPositionExpired (final Calendar jobPositionExpired) {
- this.jobPositionExpired = jobPositionExpired;
- }
-
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Calendar getJobPositionHired () {
- return this.jobPositionHired;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setJobPositionHired (final Calendar jobPositionHired) {
- this.jobPositionHired = jobPositionHired;
- }
-
- @Override
- public Long getJobPositionId () {
- return this.jobPositionId;
- }
-
- @Override
- public void setJobPositionId (final Long jobPositionId) {
- this.jobPositionId = jobPositionId;
- }
-
- @Override
- public String getJobPositionName () {
- return this.jobPositionName;
- }
-
- @Override
- public void setJobPositionName (final String jobPositionName) {
- this.jobPositionName = jobPositionName;
- }
-
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Calendar getJobPositionStart () {
- return this.jobPositionStart;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setJobPositionStart (final Calendar jobPositionStart) {
- this.jobPositionStart = jobPositionStart;
- }
-
- @Override
- public JobPositionStatus getJobPositionStatus () {
- return this.jobPositionStatus;
- }
-
- @Override
- public void setJobPositionStatus (final JobPositionStatus jobPositionStatus) {
- this.jobPositionStatus = jobPositionStatus;
- }
-
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Calendar getJobPositionUpdated () {
- return this.jobPositionUpdated;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setJobPositionUpdated (final Calendar jobPositionUpdated) {
- 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;
- }
-
-}
--- /dev/null
+/*
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jjobs.model.jobposition;
+
+import java.util.Date;
+import java.util.Objects;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import javax.persistence.Transient;
+import org.mxchange.jjobs.model.jobposition.status.JobPositionStatus;
+import org.mxchange.jusercore.model.user.LoginUser;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * A POJO entity for job positions
+ * @todo Check if required fields are given and write both constructors (public)
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Entity (name = "open_job_position")
+@Table (
+ name = "open_job_position"
+)
+@SuppressWarnings ("PersistenceUnitPresent")
+public class OpenJobPosition implements HireableJobPosition {
+
+ /**
+ * Serial number
+ */
+ @Transient
+ private static final long serialVersionUID = 547_102_736_712_809_694L;
+
+ /**
+ * User who has added this job position
+ */
+ @JoinColumn (name = "job_position_added_user_id", referencedColumnName = "user_id", updatable = false)
+ @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
+ private User jobPositionAddedUser;
+
+ /**
+ * When this entry has been created
+ */
+ @Basic (optional = false)
+ @Column (name = "job_position_created", nullable = false, updatable = false)
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date jobPositionCreated;
+
+ /**
+ * When this job position (offer) was deleted
+ */
+ @Column (name = "job_position_deleted")
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date jobPositionDeleted;
+
+ /**
+ * When this job position (offer) has expired
+ */
+ @Column (name = "job_position_expired")
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date jobPositionExpired;
+
+ /**
+ * When a new employed was hired for this job position
+ */
+ @Column (name = "job_position_hired")
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date jobPositionHired;
+
+ /**
+ * Id number (primary key)
+ */
+ @Id
+ @GeneratedValue (strategy = GenerationType.IDENTITY)
+ @Column (name = "job_position_id", nullable = false, updatable = false)
+ private Long jobPositionId;
+
+ /**
+ * Name of the position (example: Store Worker)
+ */
+ @Basic (optional = false)
+ @Column (name = "job_position_name", nullable = false, unique = true)
+ private String jobPositionName;
+
+ /**
+ * When this job position (offer) starts
+ */
+ @Basic (optional = false)
+ @Column (name = "job_position_start", nullable = false)
+ @Temporal (TemporalType.DATE)
+ private Date jobPositionStart;
+
+ /**
+ * Job position status
+ */
+ @Basic (optional = false)
+ @Column (name = "job_position_status", nullable = false)
+ @Enumerated (EnumType.STRING)
+ private JobPositionStatus jobPositionStatus;
+
+ /**
+ * When this entry has been created
+ */
+ @Column (name = "job_position_updated", insertable = false)
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date jobPositionUpdated;
+
+ @Override
+ public boolean equals (final Object object) {
+ if (this == object) {
+ return true;
+ } else if (null == object) {
+ return false;
+ } else if (this.getClass() != object.getClass()) {
+ return false;
+ }
+
+ final HireableJobPosition other = (HireableJobPosition) object;
+
+ if (!Objects.equals(this.getJobPositionName(), other.getJobPositionName())) {
+ return false;
+ } else if (!Objects.equals(this.getJobPositionId(), other.getJobPositionId())) {
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public User getJobPositionAddedUser () {
+ return this.jobPositionAddedUser;
+ }
+
+ @Override
+ public void setJobPositionAddedUser (final User jobPositionAddedUser) {
+ this.jobPositionAddedUser = jobPositionAddedUser;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getJobPositionCreated () {
+ return this.jobPositionCreated;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setJobPositionCreated (final Date jobPositionCreated) {
+ this.jobPositionCreated = jobPositionCreated;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getJobPositionDeleted () {
+ return this.jobPositionDeleted;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setJobPositionDeleted (final Date jobPositionDeleted) {
+ this.jobPositionDeleted = jobPositionDeleted;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getJobPositionExpired () {
+ return this.jobPositionExpired;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setJobPositionExpired (final Date jobPositionExpired) {
+ this.jobPositionExpired = jobPositionExpired;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getJobPositionHired () {
+ return this.jobPositionHired;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setJobPositionHired (final Date jobPositionHired) {
+ this.jobPositionHired = jobPositionHired;
+ }
+
+ @Override
+ public Long getJobPositionId () {
+ return this.jobPositionId;
+ }
+
+ @Override
+ public void setJobPositionId (final Long jobPositionId) {
+ this.jobPositionId = jobPositionId;
+ }
+
+ @Override
+ public String getJobPositionName () {
+ return this.jobPositionName;
+ }
+
+ @Override
+ public void setJobPositionName (final String jobPositionName) {
+ this.jobPositionName = jobPositionName;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getJobPositionStart () {
+ return this.jobPositionStart;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setJobPositionStart (final Date jobPositionStart) {
+ this.jobPositionStart = jobPositionStart;
+ }
+
+ @Override
+ public JobPositionStatus getJobPositionStatus () {
+ return this.jobPositionStatus;
+ }
+
+ @Override
+ public void setJobPositionStatus (final JobPositionStatus jobPositionStatus) {
+ this.jobPositionStatus = jobPositionStatus;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getJobPositionUpdated () {
+ return this.jobPositionUpdated;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setJobPositionUpdated (final Date jobPositionUpdated) {
+ 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;
+ }
+
+}
*/
package org.mxchange.jjobs.model.jobskill;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
@Basic (optional = false)
@Column (name = "skill_job_created", nullable = false, updatable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Calendar jobPositionSkillCreated;
+ private Date jobPositionSkillCreated;
/**
* Id number (primary key
*/
@Column (name = "skill_job_updated", insertable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Calendar jobPositionSkillUpdated;
+ private Date jobPositionSkillUpdated;
/**
* Link to skill entity
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getJobPositionSkillCreated () {
+ public Date getJobPositionSkillCreated () {
return this.jobPositionSkillCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setJobPositionSkillCreated (final Calendar jobPositionSkillCreated) {
+ public void setJobPositionSkillCreated (final Date jobPositionSkillCreated) {
this.jobPositionSkillCreated = jobPositionSkillCreated;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getJobPositionSkillUpdated () {
+ public Date getJobPositionSkillUpdated () {
return this.jobPositionSkillUpdated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setJobPositionSkillUpdated (final Calendar jobPositionSkillUpdated) {
+ public void setJobPositionSkillUpdated (final Date jobPositionSkillUpdated) {
this.jobPositionSkillUpdated = jobPositionSkillUpdated;
}
package org.mxchange.jjobs.model.jobskill;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jjobs.model.jobposition.HireableJobPosition;
import org.mxchange.jjobs.model.skill.Skillable;
import org.mxchange.jusercore.model.user.User;
* <p>
* @return Job position skill created timestamp
*/
- Calendar getJobPositionSkillCreated ();
+ Date getJobPositionSkillCreated ();
/**
* Setter for job position skill created timestamp
* <p>
* @param jobPositionSkillCreated Job position skill created timestamp
*/
- void setJobPositionSkillCreated (final Calendar jobPositionSkillCreated);
+ void setJobPositionSkillCreated (final Date jobPositionSkillCreated);
/**
* Getter for job position skill updated timestamp
* <p>
* @return Job position skill updated timestamp
*/
- Calendar getJobPositionSkillUpdated ();
+ Date getJobPositionSkillUpdated ();
/**
* Setter for job position skill updated timestamp
* <p>
* @param jobPositionSkillUpdated Job position skill updated timestamp
*/
- void setJobPositionSkillUpdated (final Calendar jobPositionSkillUpdated);
+ void setJobPositionSkillUpdated (final Date jobPositionSkillUpdated);
/**
* Getter for job skill
package org.mxchange.jjobs.model.skill;
import org.mxchange.jjobs.model.skill.status.SkillStatus;
-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 = "skill_created", nullable = false, updatable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Calendar skillCreated;
+ private Date skillCreated;
/**
* Id number (primary key)
*/
@Column (name = "skill_last_locked", insertable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Calendar skillLastLocked;
+ private Date skillLastLocked;
/**
* Skill name
*/
@Column (name = "skill_updated", insertable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Calendar skillUpdated;
+ private Date skillUpdated;
@Override
public boolean equals (final Object object) {
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getSkillCreated () {
+ public Date getSkillCreated () {
return this.skillCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setSkillCreated (final Calendar skillCreated) {
+ public void setSkillCreated (final Date skillCreated) {
this.skillCreated = skillCreated;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getSkillLastLocked () {
+ public Date getSkillLastLocked () {
return this.skillLastLocked;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setSkillLastLocked (final Calendar skillLastLocked) {
+ public void setSkillLastLocked (final Date skillLastLocked) {
this.skillLastLocked = skillLastLocked;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getSkillUpdated () {
+ public Date getSkillUpdated () {
return this.skillUpdated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setSkillUpdated (final Calendar skillUpdated) {
+ public void setSkillUpdated (final Date skillUpdated) {
this.skillUpdated = skillUpdated;
}
import org.mxchange.jjobs.model.skill.status.SkillStatus;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
/**
* A POJI for skills (hard and soft)
* <p>
* @return Skill created timestamp
*/
- Calendar getSkillCreated ();
+ Date getSkillCreated ();
/**
* Setter for skill created timestamp
* <p>
* @param skillCreated Skill created timestamp
*/
- void setSkillCreated (final Calendar skillCreated);
+ void setSkillCreated (final Date skillCreated);
/**
* Getter for skill updated timestamp
* <p>
* @return Skill updated timestamp
*/
- Calendar getSkillUpdated ();
+ Date getSkillUpdated ();
/**
* Setter for skill updated timestamp
* <p>
* @param skillUpdated Skill updated timestamp
*/
- void setSkillUpdated (final Calendar skillUpdated);
+ void setSkillUpdated (final Date skillUpdated);
/**
* Getter for skill last locked timestamp
* <p>
* @return Skill last locked timestamp
*/
- Calendar getSkillLastLocked ();
+ Date getSkillLastLocked ();
/**
* Setter for skill last locked timestamp
* <p>
* @param skillLastLocked Skill last locked timestamp
*/
- void setSkillLastLocked (final Calendar skillLastLocked);
+ void setSkillLastLocked (final Date skillLastLocked);
/**
* Getter for skill status
import org.mxchange.jjobs.model.skill.Skillable;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jusercore.model.user.User;
/**
* <p>
* @return Job position skill created timestamp
*/
- Calendar getUserSkillCreated ();
+ Date getUserSkillCreated ();
/**
* Setter for user skill created timestamp
* <p>
* @param userSkillCreated Job position skill created timestamp
*/
- void setUserSkillCreated (final Calendar userSkillCreated);
+ void setUserSkillCreated (final Date userSkillCreated);
/**
* Getter for user skill updated timestamp
* <p>
* @return Job position skill updated timestamp
*/
- Calendar getUserSkillUpdated ();
+ Date getUserSkillUpdated ();
/**
* Setter for user skill updated timestamp
* <p>
* @param userSkillUpdated Job position skill updated timestamp
*/
- void setUserSkillUpdated (final Calendar userSkillUpdated);
+ void setUserSkillUpdated (final Date userSkillUpdated);
/**
* Getter for job skill
import org.mxchange.jjobs.model.skill.JobSkill;
import org.mxchange.jjobs.model.skill.Skillable;
-import java.util.Calendar;
+import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
@Basic (optional = false)
@Column (name = "user_skill_created", nullable = false, updatable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Calendar userSkillCreated;
+ private Date userSkillCreated;
/**
* Id number (primary key)
*/
@Column (name = "user_skill_updated", insertable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Calendar userSkillUpdated;
+ private Date userSkillUpdated;
@Override
public Skillable getJobSkill () {
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getUserSkillCreated () {
+ public Date getUserSkillCreated () {
return this.userSkillCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setUserSkillCreated (final Calendar userSkillCreated) {
+ public void setUserSkillCreated (final Date userSkillCreated) {
this.userSkillCreated = userSkillCreated;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getUserSkillUpdated () {
+ public Date getUserSkillUpdated () {
return this.userSkillUpdated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setUserSkillUpdated (final Calendar userSkillUpdated) {
+ public void setUserSkillUpdated (final Date userSkillUpdated) {
this.userSkillUpdated = userSkillUpdated;
}