private void createCarBlockDesignationList() {
List<CarBlock> carBlockList = trainDesign.getCarBlockList();
List<CarBlockDesignation> carBlockDesignationList = new ArrayList<CarBlockDesignation>(carBlockList.size());
long id = 0L;
for (CarBlock carBlock : carBlockList) {
CarBlockDesignation carBlockDesignation = new CarBlockDesignation();
carBlockDesignation.setId(id);
id++;
carBlockDesignation.setCarBlock(carBlock);
// Notice that we leave the PlanningVariable properties on null
carBlockDesignationList.add(carBlockDesignation);
}
trainDesign.setCarBlockDesignationList(carBlockDesignationList);
}