bug6247: fix the course creation issue

This commit is contained in:
masha.kashirina
2026-05-15 18:25:28 +02:00
parent 59aad61374
commit e4d340b333
4 changed files with 80 additions and 0 deletions
@@ -132,4 +132,24 @@ public class CourseTemplateDTO extends NamedDTO implements SecuredDTO {
public Integer getDefaultNumberOfLaps() {
return defaultNumberOfLaps;
}
@Override
public int hashCode() {
return uuid != null ? uuid.hashCode() : System.identityHashCode(this);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof CourseTemplateDTO)) {
return false;
}
final CourseTemplateDTO other = (CourseTemplateDTO) obj;
if (uuid == null || other.uuid == null) {
return false;
}
return uuid.equals(other.uuid);
}
}
@@ -94,4 +94,24 @@ public class MarkPropertiesDTO extends NamedDTO implements SecuredDTO {
public String getPositioningType() {
return positioningType;
}
@Override
public int hashCode() {
return uuid != null ? uuid.hashCode() : System.identityHashCode(this);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof MarkPropertiesDTO)) {
return false;
}
final MarkPropertiesDTO other = (MarkPropertiesDTO) obj;
if (uuid == null || other.uuid == null) {
return false;
}
return uuid.equals(other.uuid);
}
}
@@ -76,4 +76,24 @@ public class MarkRoleDTO extends NamedDTO implements SecuredDTO {
securityInformation.setOwnership(createOwnershipDTO);
}
@Override
public int hashCode() {
return uuid != null ? uuid.hashCode() : System.identityHashCode(this);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof MarkRoleDTO)) {
return false;
}
final MarkRoleDTO other = (MarkRoleDTO) obj;
if (uuid == null || other.uuid == null) {
return false;
}
return uuid.equals(other.uuid);
}
}
@@ -80,4 +80,24 @@ public class MarkTemplateDTO extends NamedDTO implements SecuredDTO {
return commonMarkProperties;
}
@Override
public int hashCode() {
return uuid != null ? uuid.hashCode() : System.identityHashCode(this);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof MarkTemplateDTO)) {
return false;
}
final MarkTemplateDTO other = (MarkTemplateDTO) obj;
if (uuid == null || other.uuid == null) {
return false;
}
return uuid.equals(other.uuid);
}
}