jpaoletti.jpm.test.SimpleClass Maven / Gradle / Ivy
The newest version!
package jpaoletti.jpm.test;
/**
*
* @author jpaoletti
*/
public class SimpleClass {
private Long id;
private String description;
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final SimpleClass other = (SimpleClass) obj;
if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public int hashCode() {
int hash = 7;
hash = 47 * hash + (this.id != null ? this.id.hashCode() : 0);
return hash;
}
@Override
public String toString() {
return getDescription();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy