package org.clothocad.hibernate.data;
// Generated Jun 1, 2010 8:47:54 PM by Hibernate Tools 3.2.1.GA
/**
* NoteNoteXrefId generated by hbm2java
*/
public class NoteNoteXrefId implements java.io.Serializable {
private String parentNoteId;
private String childNoteId;
public NoteNoteXrefId() {
}
public NoteNoteXrefId(String parentNoteId, String childNoteId) {
this.parentNoteId = parentNoteId;
this.childNoteId = childNoteId;
}
public String getParentNoteId() {
return this.parentNoteId;
}
public void setParentNoteId(String parentNoteId) {
this.parentNoteId = parentNoteId;
}
public String getChildNoteId() {
return this.childNoteId;
}
public void setChildNoteId(String childNoteId) {
this.childNoteId = childNoteId;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof NoteNoteXrefId) ) return false;
NoteNoteXrefId castOther = ( NoteNoteXrefId ) other;
return ( (this.getParentNoteId()==castOther.getParentNoteId()) || ( this.getParentNoteId()!=null && castOther.getParentNoteId()!=null && this.getParentNoteId().equals(castOther.getParentNoteId()) ) )
&& ( (this.getChildNoteId()==castOther.getChildNoteId()) || ( this.getChildNoteId()!=null && castOther.getChildNoteId()!=null && this.getChildNoteId().equals(castOther.getChildNoteId()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getParentNoteId() == null ? 0 : this.getParentNoteId().hashCode() );
result = 37 * result + ( getChildNoteId() == null ? 0 : this.getChildNoteId().hashCode() );
return result;
}
}