- @Override
- public boolean equals(Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- ComponentMetadataDataDefinition other = (ComponentMetadataDataDefinition) obj;
- if (UUID == null) {
- if (other.UUID != null) {
- return false;
- }
- } else if (!UUID.equals(other.UUID)) {
- return false;
- }
- if (allVersions == null) {
- if (other.allVersions != null) {
- return false;
- }
- } else if (!allVersions.equals(other.allVersions)) {
- return false;
- }
- if (componentType != other.componentType) {
- return false;
- }
- if (conformanceLevel == null) {
- if (other.conformanceLevel != null) {
- return false;
- }
- } else if (!conformanceLevel.equals(other.conformanceLevel)) {
- return false;
- }
- if (contactId == null) {
- if (other.contactId != null) {
- return false;
- }
- } else if (!contactId.equals(other.contactId)) {
- return false;
- }
- if (creationDate == null) {
- if (other.creationDate != null) {
- return false;
- }
- } else if (!creationDate.equals(other.creationDate)) {
- return false;
- }
- if (creatorFullName == null) {
- if (other.creatorFullName != null) {
- return false;
- }
- } else if (!creatorFullName.equals(other.creatorFullName)) {
- return false;
- }
- if (creatorUserId == null) {
- if (other.creatorUserId != null) {
- return false;
- }
- } else if (!creatorUserId.equals(other.creatorUserId)) {
- return false;
- }
- if (csarUUID == null) {
- if (other.csarUUID != null) {
- return false;
- }
- } else if (!csarUUID.equals(other.csarUUID)) {
- return false;
- }
- if (csarVersion == null) {
- if (other.csarVersion != null) {
- return false;
- }
- } else if (!csarVersion.equals(other.csarVersion)) {
- return false;
- }
- if (description == null) {
- if (other.description != null) {
- return false;
- }
- } else if (!description.equals(other.description)) {
- return false;
- }
- if (icon == null) {
- if (other.icon != null) {
- return false;
- }
- } else if (!icon.equals(other.icon)) {
- return false;
- }
- if (importedToscaChecksum == null) {
- if (other.importedToscaChecksum != null) {
- return false;
- }
- } else if (!importedToscaChecksum.equals(other.importedToscaChecksum)) {
- return false;
- }
- if (invariantUUID == null) {
- if (other.invariantUUID != null) {
- return false;
- }
- } else if (!invariantUUID.equals(other.invariantUUID)) {
- return false;
- }
- if (isDeleted == null) {
- if (other.isDeleted != null) {
- return false;
- }
- } else if (!isDeleted.equals(other.isDeleted)) {
- return false;
- }
- if (isHighestVersion == null) {
- if (other.isHighestVersion != null) {
- return false;
- }
- } else if (!isHighestVersion.equals(other.isHighestVersion)) {
- return false;
- }
- if (lastUpdateDate == null) {
- if (other.lastUpdateDate != null) {
- return false;
- }
- } else if (!lastUpdateDate.equals(other.lastUpdateDate)) {
- return false;
- }
- if (lastUpdaterFullName == null) {
- if (other.lastUpdaterFullName != null) {
- return false;
- }
- } else if (!lastUpdaterFullName.equals(other.lastUpdaterFullName)) {
- return false;
- }
- if (lastUpdaterUserId == null) {
- if (other.lastUpdaterUserId != null) {
- return false;
- }
- } else if (!lastUpdaterUserId.equals(other.lastUpdaterUserId)) {
- return false;
- }
- if (name == null) {
- if (other.name != null) {
- return false;
- }
- } else if (!name.equals(other.name)) {
- return false;
- }
- if (normalizedName == null) {
- if (other.normalizedName != null) {
- return false;
- }
- } else if (!normalizedName.equals(other.normalizedName)) {
- return false;
- }
- if (projectCode == null) {
- if (other.projectCode != null) {
- return false;
- }
- } else if (!projectCode.equals(other.projectCode)) {
- return false;
- }
- if (state == null) {
- if (other.state != null) {
- return false;
- }
- } else if (!state.equals(other.state)) {
- return false;
- }
- if (systemName == null) {
- if (other.systemName != null) {
- return false;
- }
- } else if (!systemName.equals(other.systemName)) {
- return false;
- }
- if (tags == null) {
- if (other.tags != null) {
- return false;
- }
- } else if (!tags.equals(other.tags)) {
- return false;
- }
- if (uniqueId == null) {
- if (other.uniqueId != null) {
- return false;
- }
- } else if (!uniqueId.equals(other.uniqueId)) {
- return false;
- }
- if (version == null) {
- return other.version == null;
- } else {
- return version.equals(other.version);
- }