stackName, stackVersion));
serviceComponentDesiredStateDAO.merge(scd);
}
}
ServiceDesiredStateDAO serviceDesiredStateDAO = injector.getInstance(ServiceDesiredStateDAO.class);
List<ServiceDesiredStateEntity> sdEntities = serviceDesiredStateDAO.findAll();
if (sdEntities != null) {
for (ServiceDesiredStateEntity sd : sdEntities) {
String desiredStackVersion = sd.getDesiredStackVersion();
sd.setDesiredStackVersion(getStackIdString(desiredStackVersion,
stackName, stackVersion));
serviceDesiredStateDAO.merge(sd);
}
}
}