another occurrence of boat before competitor to DB

Change-Id: Iba2857f4408789de7c34f50bb3d898dbdb6008b7
This commit is contained in:
Axel Uhl committed 2018-04-11 16:21:33 +02:00
1 parent 5bae991418
commit 656d8cbff1
1 file changed
+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"));
}