AtlasRelationshipEndDef newEnd1 = newRelationshipDef.getEndDef1(); if ( !newEnd1.equals(existingEnd1) ) { throw new AtlasBaseException(AtlasErrorCode.RELATIONSHIPDEF_INVALID_END1_UPDATE, newRelationshipDef.getName(), newEnd1.toString(), existingEnd1.toString()); AtlasRelationshipEndDef newEnd2 = newRelationshipDef.getEndDef2(); if ( !newEnd2.equals(existingEnd2) ) { throw new AtlasBaseException(AtlasErrorCode.RELATIONSHIPDEF_INVALID_END2_UPDATE, newRelationshipDef.getName(), newEnd2.toString(), existingEnd2.toString());
AtlasRelationshipEndDef newEnd1 = newRelationshipDef.getEndDef1(); if ( !newEnd1.equals(existingEnd1) ) { throw new AtlasBaseException(AtlasErrorCode.RELATIONSHIPDEF_INVALID_END1_UPDATE, newRelationshipDef.getName(), newEnd1.toString(), existingEnd1.toString()); AtlasRelationshipEndDef newEnd2 = newRelationshipDef.getEndDef2(); if ( !newEnd2.equals(existingEnd2) ) { throw new AtlasBaseException(AtlasErrorCode.RELATIONSHIPDEF_INVALID_END2_UPDATE, newRelationshipDef.getName(), newEnd2.toString(), existingEnd2.toString());