/*
- * Copyright (C) 2016 Roland Haeder
+ * 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
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
+import javax.persistence.Transient;
/**
* A POJO for job positions
* <p>
- * @author Roland Haeder<roland@mxchange.org>
+ * @author Roland Häder<roland@mxchange.org>
*/
@Entity (name = "company_job_positions")
@Table (
/**
* Serial number
*/
+ @Transient
private static final long serialVersionUID = 18_427_587_187_609L;
/**
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;
+ }
+
}