mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-13 22:15:26 +00:00
Bug 4211: added competitors to SailorProfileImpl
This commit is contained in:
1 parent
cf29505adc
commit
b513d3ed76
2 files changed
+11
-1
No files matched your search
+2
@@ -9,4 +9,6 @@ public interface SailorProfile extends NamedWithID, IsManagedByCache<SharedDomai
|
||||
String getName();
|
||||
|
||||
UUID getUuid();
|
||||
|
||||
Iterable<Competitor> getCompetitors();
|
||||
}
|
||||
+9
-1
@@ -3,6 +3,7 @@ package com.sap.sailing.domain.base.impl;
|
||||
import java.io.Serializable;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.sap.sailing.domain.base.Competitor;
|
||||
import com.sap.sailing.domain.base.SailorProfile;
|
||||
import com.sap.sailing.domain.base.SharedDomainFactory;
|
||||
import com.sap.sse.common.IsManagedByCache;
|
||||
@@ -12,10 +13,12 @@ public class SailorProfileImpl extends NamedImpl implements SailorProfile {
|
||||
private static final long serialVersionUID = -2714015903187029053L;
|
||||
|
||||
private UUID uuid;
|
||||
private Iterable<Competitor> competitors;
|
||||
|
||||
public SailorProfileImpl(String name, UUID uuid) {
|
||||
public SailorProfileImpl(String name, UUID uuid, Iterable<Competitor> competitors) {
|
||||
this(name);
|
||||
this.uuid = uuid;
|
||||
this.competitors = competitors;
|
||||
}
|
||||
|
||||
public SailorProfileImpl(String name) {
|
||||
@@ -38,4 +41,9 @@ public class SailorProfileImpl extends NamedImpl implements SailorProfile {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterable<Competitor> getCompetitors() {
|
||||
return competitors;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user