mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-09 20:41:10 +00:00
another occurrence of boat before competitor to DB
Change-Id: Iba2857f4408789de7c34f50bb3d898dbdb6008b7
This commit is contained in:
1 parent
5bae991418
commit
656d8cbff1
1 file changed
+1
-1
+1
-1
@@ -419,8 +419,8 @@ public class TransientCompetitorStoreImpl implements CompetitorStore, Serializab
|
||||
DynamicTeam team, Double timeOnTimeFactor, Duration timeOnDistanceAllowancePerNauticalMile, String searchTag, DynamicBoat boat) {
|
||||
CompetitorWithBoat competitor = new CompetitorWithBoatImpl(id, name, shortName, displayColor, email, flagImage, team,
|
||||
timeOnTimeFactor, timeOnDistanceAllowancePerNauticalMile, searchTag, boat);
|
||||
addNewBoat(boat); // create the boat before the competitor because the competitor references the boat
|
||||
addNewCompetitor(competitor);
|
||||
addNewBoat(boat);
|
||||
if (logger.isLoggable(Level.FINEST)) {
|
||||
logger.log(Level.FINEST, "Created competitor "+name+" with ID "+id, new Exception("Here is where it happened"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user