public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof RelRelevoTrabajaderaHermanoId) ) return false;
		 RelRelevoTrabajaderaHermanoId castOther = ( RelRelevoTrabajaderaHermanoId ) other; 
         
		 return (this.getIdrelevo()==castOther.getIdrelevo())
 && (this.getIdtrabajadera()==castOther.getIdtrabajadera())
 && ( (this.getDni()==castOther.getDni()) || ( this.getDni()!=null && castOther.getDni()!=null && this.getDni().equals(castOther.getDni()) ) )
 && (this.getIdposicion()==castOther.getIdposicion());
   }