package org.clothocad.hibernate.data;
// Generated Jul 26, 2010 11:53:27 AM by Hibernate Tools 3.2.1.GA
/**
* StrainNoteXrefId generated by hbm2java
*/
public class StrainNoteXrefId implements java.io.Serializable {
private String strainId;
private String noteId;
public StrainNoteXrefId() {
}
public StrainNoteXrefId(String strainId, String noteId) {
this.strainId = strainId;
this.noteId = noteId;
}
public String getStrainId() {
return this.strainId;
}
public void setStrainId(String strainId) {
this.strainId = strainId;
}
public String getNoteId() {
return this.noteId;
}
public void setNoteId(String noteId) {
this.noteId = noteId;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof StrainNoteXrefId) ) return false;
StrainNoteXrefId castOther = ( StrainNoteXrefId ) other;
return ( (this.getStrainId()==castOther.getStrainId()) || ( this.getStrainId()!=null && castOther.getStrainId()!=null && this.getStrainId().equals(castOther.getStrainId()) ) )
&& ( (this.getNoteId()==castOther.getNoteId()) || ( this.getNoteId()!=null && castOther.getNoteId()!=null && this.getNoteId().equals(castOther.getNoteId()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getStrainId() == null ? 0 : this.getStrainId().hashCode() );
result = 37 * result + ( getNoteId() == null ? 0 : this.getNoteId().hashCode() );
return result;
}
}