public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof ChiTietSachId) ) return false;
		 ChiTietSachId castOther = ( ChiTietSachId ) other; 
         
		 return ( (this.getMaSach()==castOther.getMaSach()) || ( this.getMaSach()!=null && castOther.getMaSach()!=null && this.getMaSach().equals(castOther.getMaSach()) ) )
 && (this.getMaTacGia()==castOther.getMaTacGia())
 && (this.getMaNxb()==castOther.getMaNxb())
 && (this.getMaLoai()==castOther.getMaLoai());
   }