mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
implemented 'shortName' attribute for Competitor to prepare to remove the misuse of the sailId for team names
This commit is contained in:
+2
-1
@@ -201,6 +201,7 @@ public class StructureImporter {
|
||||
Person person = (Person) obj;
|
||||
String idAsString = person.getPersonID();
|
||||
String name = person.getGivenName() + " " + person.getFamilyName();
|
||||
String shortName = null; // Can we get a short name from Manage2Sail?
|
||||
Color color = null;
|
||||
String email = null;
|
||||
URI flagImage = null;
|
||||
@@ -208,7 +209,7 @@ public class StructureImporter {
|
||||
.toString());
|
||||
BoatAndTeam boatAndTeam = getBoatAndTeam(idAsString, name, nationality, boatClass);
|
||||
this.baseDomainFactory.convertToCompetitorDTO(this.baseDomainFactory.getOrCreateCompetitor(
|
||||
UUID.fromString(idAsString), name, color, email, flagImage, boatAndTeam.getTeam(), boatAndTeam.getBoat(),
|
||||
UUID.fromString(idAsString), name, shortName, color, email, flagImage, boatAndTeam.getTeam(), boatAndTeam.getBoat(),
|
||||
/* timeOnTimeFactor */ null, /* timeOnDistanceAllowancePerNauticalMile */ null, null));
|
||||
} else {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user