]> git.mxchange.org Git - jcontacts-business-core.git/blobdiff - src/org/mxchange/jcontactsbusiness/jobposition/EmployeePosition.java
resorted members + added this.
[jcontacts-business-core.git] / src / org / mxchange / jcontactsbusiness / jobposition / EmployeePosition.java
index 31884f482516f761ecc98ab49e9decbd67fd9437..2ac54d9b862c40c6fc50964c436c4571e8d91335 100644 (file)
@@ -42,6 +42,14 @@ public class EmployeePosition implements JobPosition, Comparable<JobPosition> {
         */
        private static final long serialVersionUID = 18_427_587_187_609L;
 
+       /**
+        * Timestamp when this entry has been created
+        */
+       @Basic (optional = false)
+       @Temporal (TemporalType.TIMESTAMP)
+       @Column (name = "job_position_created", nullable = false, updatable = false)
+       private Calendar jobPositionCreated;
+
        /**
         * Id number
         */
@@ -57,32 +65,29 @@ public class EmployeePosition implements JobPosition, Comparable<JobPosition> {
        @Column (name = "job_position_name", length = 10, nullable = false, unique = true)
        private String jobPositionName;
 
-       /**
-        * Timestamp when this entry has been created
-        */
-       @Basic (optional = false)
-       @Temporal (TemporalType.TIMESTAMP)
-       @Column (name = "job_position_created", nullable = false, updatable = false)
-       private Calendar jobPositionCreated;
-
        @Override
-       public Long getJobPositionId () {
-               return this.jobPositionId;
+       public int compareTo (final JobPosition jobPosition) {
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }
 
        @Override
-       public void setJobPositionId (final Long jobPositionId) {
-               this.jobPositionId = jobPositionId;
-       }
+       public boolean equals (final Object object) {
+               if (object == null) {
+                       return false;
+               } else if (this.getClass() != object.getClass()) {
+                       return false;
+               }
 
-       @Override
-       public String getJobPositionName () {
-               return this.jobPositionName;
+               final JobPosition other = (JobPosition) object;
+
+               return Objects.equals(this.getJobPositionName(), other.getJobPositionName());
        }
 
        @Override
-       public void setJobPositionName (final String jobPositionName) {
-               this.jobPositionName = jobPositionName;
+       public int hashCode () {
+               int hash = 7;
+               hash = 37 * hash + Objects.hashCode(this.getJobPositionName());
+               return hash;
        }
 
        @Override
@@ -96,28 +101,23 @@ public class EmployeePosition implements JobPosition, Comparable<JobPosition> {
        }
 
        @Override
-       public int compareTo (final JobPosition jobPosition) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+       public Long getJobPositionId () {
+               return this.jobPositionId;
        }
 
        @Override
-       public boolean equals (final Object object) {
-               if (object == null) {
-                       return false;
-               } else if (getClass() != object.getClass()) {
-                       return false;
-               }
-
-               final JobPosition other = (JobPosition) object;
+       public void setJobPositionId (final Long jobPositionId) {
+               this.jobPositionId = jobPositionId;
+       }
 
-               return Objects.equals(this.getJobPositionName(), other.getJobPositionName());
+       @Override
+       public String getJobPositionName () {
+               return this.jobPositionName;
        }
 
        @Override
-       public int hashCode () {
-               int hash = 7;
-               hash = 37 * hash + Objects.hashCode(this.getJobPositionName());
-               return hash;
+       public void setJobPositionName (final String jobPositionName) {
+               this.jobPositionName = jobPositionName;
        }
 
 }