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