1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
public abstract class AbstractThesaurusId implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 1L;
private Integer idThesaurus;
private String idLangue;
private String description;
// Constructors
/** default constructor */
public AbstractThesaurusId() {
}
/** minimal constructor */
public AbstractThesaurusId(Integer idThesaurus) {
this.idThesaurus = idThesaurus;
}
/** full constructor */
public AbstractThesaurusId(Integer idThesaurus, String idLangue,
String description) {
this.idThesaurus = idThesaurus;
this.idLangue = idLangue;
this.description = description;
}
// Property accessors
public Integer getIdThesaurus() {
return this.idThesaurus;
}
public void setIdThesaurus(Integer idThesaurus) {
this.idThesaurus = idThesaurus;
}
public String getIdLangue() {
return this.idLangue;
}
public void setIdLangue(String idLangue) {
this.idLangue = idLangue;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof AbstractThesaurusId))
return false;
AbstractThesaurusId castOther = (AbstractThesaurusId) other;
return ((this.getIdThesaurus() == castOther.getIdThesaurus()) || (this
.getIdThesaurus() != null
&& castOther.getIdThesaurus() != null && this.getIdThesaurus()
.equals(castOther.getIdThesaurus())))
&& ((this.getIdLangue() == castOther.getIdLangue()) || (this
.getIdLangue() != null
&& castOther.getIdLangue() != null && this
.getIdLangue().equals(castOther.getIdLangue())))
&& ((this.getDescription() == castOther.getDescription()) || (this
.getDescription() != null
&& castOther.getDescription() != null && this
.getDescription().equals(castOther.getDescription())));
}
public int hashCode() {
int result = 17;
result = 37
* result
+ (getIdThesaurus() == null ? 0 : this.getIdThesaurus()
.hashCode());
result = 37 * result
+ (getIdLangue() == null ? 0 : this.getIdLangue().hashCode());
result = 37
* result
+ (getDescription() == null ? 0 : this.getDescription()
.hashCode());
return result;
}
} |
Partager