mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-16 10:48:47 +00:00
Merge branch 'bug6247'
This commit is contained in:
+20
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
+20
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
+20
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+20
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user