package open.dolphin.infomodel;
// Generated 2010/06/30 10:57:59 by Hibernate Tools 3.2.1.GA

import open.dolphin.queries.DolphinQuery;

/**
 * RadiologyMethodValue generated by hbm2java
 */
public class RadiologyMethodValue extends InfoModel {

     private int id;
     private String hierarchyCode1;
     private String hierarchyCode2;
     private String methodName;

     /**
      *
      */
     public RadiologyMethodValue() {
    }

    @Override
    public boolean search(DolphinQuery query) {
        return false;
    }

    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    public String getHierarchyCode1() {
        return this.hierarchyCode1;
    }
    
    public void setHierarchyCode1(String hierarchyCode1) {
        this.hierarchyCode1 = hierarchyCode1;
    }
    /**
     *
     * @return
     */
    public String getHierarchyCode2() {
        return this.hierarchyCode2;
    }
    
    public void setHierarchyCode2(String hierarchyCode2) {
        this.hierarchyCode2 = hierarchyCode2;
    }
    /**
     *
     * @return
     */
    public String getMethodName() {
        return this.methodName;
    }
    
    /**
     *
     * @param methodName
     */
    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String toString() {
        return methodName;
    }

    @Override
    public int hashCode() {
        final int PRIME = 31;
        int result = 1;
        result = PRIME * result + id;
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final RadiologyMethodValue other = (RadiologyMethodValue) obj;
        if (getId() != other.getId()) {
            return false;
        }
        return true;
    }
}


