package org.sakaiproject.wontovlab.model;
// default package
// Generated 20/03/2008 11:41:34 by Hibernate Tools 3.2.0.b11



/**
 * VlStepMaterialId generated by hbm2java
 */
public class StepMaterialId  implements java.io.Serializable {


     private long stepId;
     private long materialId;

    public StepMaterialId() {
    }

    public StepMaterialId(long stepId, long materialId) {
       this.stepId = stepId;
       this.materialId = materialId;
    }
   
    public long getStepId() {
        return this.stepId;
    }
    
    public void setStepId(long stepId) {
        this.stepId = stepId;
    }
    public long getMaterialId() {
        return this.materialId;
    }
    
    public void setMaterialId(long materialId) {
        this.materialId = materialId;
    }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof StepMaterialId) ) return false;
		 StepMaterialId castOther = ( StepMaterialId ) other; 
         
		 return (this.getStepId()==castOther.getStepId())
 && (this.getMaterialId()==castOther.getMaterialId());
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + (int) this.getStepId();
         result = 37 * result + (int) this.getMaterialId();
         return result;
   }   


}


