]> git.mxchange.org Git - jjobs-core.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Wed, 9 Oct 2019 23:54:28 +0000 (01:54 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 9 Oct 2019 23:54:28 +0000 (01:54 +0200)
- renamed double JobPosition (here) to OpenJobPosition to have it no longer
  ambicous
- changed from java.util.Calendar (very old) to java.util.Date (latest)

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jjobs/model/jobposition/HireableJobPosition.java
src/org/mxchange/jjobs/model/jobposition/JobPosition.java [deleted file]
src/org/mxchange/jjobs/model/jobposition/OpenJobPosition.java [new file with mode: 0644]
src/org/mxchange/jjobs/model/jobskill/JobPositionSkill.java
src/org/mxchange/jjobs/model/jobskill/SkillableJobPosition.java
src/org/mxchange/jjobs/model/skill/JobSkill.java
src/org/mxchange/jjobs/model/skill/Skillable.java
src/org/mxchange/jjobs/model/user/skills/SkillableUser.java
src/org/mxchange/jjobs/model/user/skills/UserSkill.java

index 120cf99e32f97968dace90e1f08486e7b8db7820..dbbf59a21294aa0b0ba67b30a818b18bbbdc0465 100644 (file)
@@ -16,7 +16,7 @@
  */
 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;
@@ -33,14 +33,14 @@ public interface HireableJobPosition extends JobPosition {
         * <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
@@ -61,42 +61,42 @@ public interface HireableJobPosition extends JobPosition {
         * <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
diff --git a/src/org/mxchange/jjobs/model/jobposition/JobPosition.java b/src/org/mxchange/jjobs/model/jobposition/JobPosition.java
deleted file mode 100644 (file)
index 5593025..0000000
+++ /dev/null
@@ -1,275 +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 <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;
-       }
-
-}
diff --git a/src/org/mxchange/jjobs/model/jobposition/OpenJobPosition.java b/src/org/mxchange/jjobs/model/jobposition/OpenJobPosition.java
new file mode 100644 (file)
index 0000000..4df42d3
--- /dev/null
@@ -0,0 +1,276 @@
+/*
+ * 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;
+       }
+
+}
index 67c6050f23edd42cc96256af1220b88c1bccb2dc..ec162ae7aaf5a6763e668e77f2409bf212bcc2a1 100644 (file)
@@ -16,7 +16,7 @@
  */
 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;
@@ -70,7 +70,7 @@ public class JobPositionSkill implements SkillableJobPosition {
        @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
@@ -85,7 +85,7 @@ public class JobPositionSkill implements SkillableJobPosition {
         */
        @Column (name = "skill_job_updated", insertable = false)
        @Temporal (TemporalType.TIMESTAMP)
-       private Calendar jobPositionSkillUpdated;
+       private Date jobPositionSkillUpdated;
 
        /**
         * Link to skill entity
@@ -142,13 +142,13 @@ public class JobPositionSkill implements SkillableJobPosition {
 
        @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;
        }
 
@@ -164,13 +164,13 @@ public class JobPositionSkill implements SkillableJobPosition {
 
        @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;
        }
 
index 1595bf240e09b00d6670f8144ad2e5e84e218c42..47d17bcb9206b9dbfb54d3eec47c9b0fb374aded 100644 (file)
@@ -17,7 +17,7 @@
 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;
@@ -48,28 +48,28 @@ public interface SkillableJobPosition extends Serializable {
         * <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
index 3b72324a54735a183a6d39b03b2477ece6d76c00..4cb61e003b87e1b9bae77a1920790368b3a3659d 100644 (file)
@@ -17,7 +17,7 @@
 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;
@@ -56,7 +56,7 @@ public class JobSkill implements Skillable {
        @Basic (optional = false)
        @Column (name = "skill_created", nullable = false, updatable = false)
        @Temporal (TemporalType.TIMESTAMP)
-       private Calendar skillCreated;
+       private Date skillCreated;
 
        /**
         * Id number (primary key)
@@ -71,7 +71,7 @@ public class JobSkill implements Skillable {
         */
        @Column (name = "skill_last_locked", insertable = false)
        @Temporal (TemporalType.TIMESTAMP)
-       private Calendar skillLastLocked;
+       private Date skillLastLocked;
 
        /**
         * Skill name
@@ -93,7 +93,7 @@ public class JobSkill implements Skillable {
         */
        @Column (name = "skill_updated", insertable = false)
        @Temporal (TemporalType.TIMESTAMP)
-       private Calendar skillUpdated;
+       private Date skillUpdated;
 
        @Override
        public boolean equals (final Object object) {
@@ -118,13 +118,13 @@ public class JobSkill implements Skillable {
 
        @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;
        }
 
@@ -140,13 +140,13 @@ public class JobSkill implements Skillable {
 
        @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;
        }
 
@@ -172,13 +172,13 @@ public class JobSkill implements Skillable {
 
        @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;
        }
 
index 6bc3da653f617ba606a45dac61a2dfd6c10120ff..7288e3c7418008e9b824227b5315131dd84af481 100644 (file)
@@ -18,7 +18,7 @@ package org.mxchange.jjobs.model.skill;
 
 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)
@@ -60,42 +60,42 @@ public interface Skillable extends Serializable {
         * <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
index 276de73d6be10032b053a94597c0780a09ff9465..2907f8180e0a5b1cc2c93b49a388689de1d0e83f 100644 (file)
@@ -18,7 +18,7 @@ package org.mxchange.jjobs.model.user.skills;
 
 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;
 
 /**
@@ -47,28 +47,28 @@ public interface SkillableUser extends Serializable {
         * <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
index 53809247e7df3204cdcd58eadb0dee5445a5321b..8da9fa75142413fc7fe38ecf1a04b00e3dd508ce 100644 (file)
@@ -18,7 +18,7 @@ package org.mxchange.jjobs.model.user.skills;
 
 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;
@@ -71,7 +71,7 @@ public class UserSkill implements SkillableUser {
        @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)
@@ -86,7 +86,7 @@ public class UserSkill implements SkillableUser {
         */
        @Column (name = "user_skill_updated", insertable = false)
        @Temporal (TemporalType.TIMESTAMP)
-       private Calendar userSkillUpdated;
+       private Date userSkillUpdated;
 
        @Override
        public Skillable getJobSkill () {
@@ -110,13 +110,13 @@ public class UserSkill implements SkillableUser {
 
        @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;
        }
 
@@ -132,13 +132,13 @@ public class UserSkill implements SkillableUser {
 
        @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;
        }