package edu.harvard.i2b2.crc.datavo.db; // Generated Sep 25, 2006 1:09:02 PM by Hibernate Tools 3.1.0.beta5 /** * QtXmlResultId generated by hbm2java */ public class QtXmlResultId implements java.io.Serializable { // Fields private String xmlResultId; private Integer resultInstanceId; private String xmlValue; // Constructors /** default constructor */ public QtXmlResultId() { } /** full constructor */ public QtXmlResultId(String xmlResultId, Integer resultInstanceId, String xmlValue) { this.xmlResultId = xmlResultId; this.resultInstanceId = resultInstanceId; this.xmlValue = xmlValue; } // Property accessors public String getXmlResultId() { return this.xmlResultId; } public void setXmlResultId(String xmlResultId) { this.xmlResultId = xmlResultId; } public Integer getResultInstanceId() { return this.resultInstanceId; } public void setResultInstanceId(Integer resultInstanceId) { this.resultInstanceId = resultInstanceId; } public String getXmlValue() { return this.xmlValue; } public void setXmlValue(String xmlValue) { this.xmlValue = xmlValue; } public boolean equals(Object other) { if ( (this == other ) ) return true; if ( (other == null ) ) return false; if ( !(other instanceof QtXmlResultId) ) return false; QtXmlResultId castOther = ( QtXmlResultId ) other; return ( (this.getXmlResultId()==castOther.getXmlResultId()) || ( this.getXmlResultId()!=null && castOther.getXmlResultId()!=null && this.getXmlResultId().equals(castOther.getXmlResultId()) ) ) && ( (this.getResultInstanceId()==castOther.getResultInstanceId()) || ( this.getResultInstanceId()!=null && castOther.getResultInstanceId()!=null && this.getResultInstanceId().equals(castOther.getResultInstanceId()) ) ) && ( (this.getXmlValue()==castOther.getXmlValue()) || ( this.getXmlValue()!=null && castOther.getXmlValue()!=null && this.getXmlValue().equals(castOther.getXmlValue()) ) ); } public int hashCode() { int result = 17; result = 37 * result + ( getXmlResultId() == null ? 0 : this.getXmlResultId().hashCode() ); result = 37 * result + ( getResultInstanceId() == null ? 0 : this.getResultInstanceId().hashCode() ); result = 37 * result + ( getXmlValue() == null ? 0 : this.getXmlValue().hashCode() ); return result; } }