in modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java [818:942]
public boolean equals(Entity that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_entityId = true && this.isSetEntityId();
boolean that_present_entityId = true && that.isSetEntityId();
if (this_present_entityId || that_present_entityId) {
if (!(this_present_entityId && that_present_entityId))
return false;
if (!this.entityId.equals(that.entityId))
return false;
}
boolean this_present_domainId = true && this.isSetDomainId();
boolean that_present_domainId = true && that.isSetDomainId();
if (this_present_domainId || that_present_domainId) {
if (!(this_present_domainId && that_present_domainId))
return false;
if (!this.domainId.equals(that.domainId))
return false;
}
boolean this_present_entityTypeId = true && this.isSetEntityTypeId();
boolean that_present_entityTypeId = true && that.isSetEntityTypeId();
if (this_present_entityTypeId || that_present_entityTypeId) {
if (!(this_present_entityTypeId && that_present_entityTypeId))
return false;
if (!this.entityTypeId.equals(that.entityTypeId))
return false;
}
boolean this_present_ownerId = true && this.isSetOwnerId();
boolean that_present_ownerId = true && that.isSetOwnerId();
if (this_present_ownerId || that_present_ownerId) {
if (!(this_present_ownerId && that_present_ownerId))
return false;
if (!this.ownerId.equals(that.ownerId))
return false;
}
boolean this_present_parentEntityId = true && this.isSetParentEntityId();
boolean that_present_parentEntityId = true && that.isSetParentEntityId();
if (this_present_parentEntityId || that_present_parentEntityId) {
if (!(this_present_parentEntityId && that_present_parentEntityId))
return false;
if (!this.parentEntityId.equals(that.parentEntityId))
return false;
}
boolean this_present_name = true && this.isSetName();
boolean that_present_name = true && that.isSetName();
if (this_present_name || that_present_name) {
if (!(this_present_name && that_present_name))
return false;
if (!this.name.equals(that.name))
return false;
}
boolean this_present_description = true && this.isSetDescription();
boolean that_present_description = true && that.isSetDescription();
if (this_present_description || that_present_description) {
if (!(this_present_description && that_present_description))
return false;
if (!this.description.equals(that.description))
return false;
}
boolean this_present_binaryData = true && this.isSetBinaryData();
boolean that_present_binaryData = true && that.isSetBinaryData();
if (this_present_binaryData || that_present_binaryData) {
if (!(this_present_binaryData && that_present_binaryData))
return false;
if (!this.binaryData.equals(that.binaryData))
return false;
}
boolean this_present_fullText = true && this.isSetFullText();
boolean that_present_fullText = true && that.isSetFullText();
if (this_present_fullText || that_present_fullText) {
if (!(this_present_fullText && that_present_fullText))
return false;
if (!this.fullText.equals(that.fullText))
return false;
}
boolean this_present_sharedCount = true && this.isSetSharedCount();
boolean that_present_sharedCount = true && that.isSetSharedCount();
if (this_present_sharedCount || that_present_sharedCount) {
if (!(this_present_sharedCount && that_present_sharedCount))
return false;
if (this.sharedCount != that.sharedCount)
return false;
}
boolean this_present_originalEntityCreationTime = true && this.isSetOriginalEntityCreationTime();
boolean that_present_originalEntityCreationTime = true && that.isSetOriginalEntityCreationTime();
if (this_present_originalEntityCreationTime || that_present_originalEntityCreationTime) {
if (!(this_present_originalEntityCreationTime && that_present_originalEntityCreationTime))
return false;
if (this.originalEntityCreationTime != that.originalEntityCreationTime)
return false;
}
boolean this_present_createdTime = true && this.isSetCreatedTime();
boolean that_present_createdTime = true && that.isSetCreatedTime();
if (this_present_createdTime || that_present_createdTime) {
if (!(this_present_createdTime && that_present_createdTime))
return false;
if (this.createdTime != that.createdTime)
return false;
}
boolean this_present_updatedTime = true && this.isSetUpdatedTime();
boolean that_present_updatedTime = true && that.isSetUpdatedTime();
if (this_present_updatedTime || that_present_updatedTime) {
if (!(this_present_updatedTime && that_present_updatedTime))
return false;
if (this.updatedTime != that.updatedTime)
return false;
}
return true;
}