}
@Override
public void updateFinalcosting(Finalcosting finalcosting, Integer finalcostingID) {
Finalcosting newForm = finalcosting;
Finalcosting oldForm = null;
List<Finalcosting> allFcostings = finalDao.findAll();
for (Finalcosting eachfcost : allFcostings) {
logger.log(Level.INFO, "eachfcost.getIdfinalcosting(): {0}", eachfcost.getIdfinalcosting());
if (eachfcost.getIdfinalcosting().equals(finalcostingID)) {
oldForm = eachfcost;
logger.log(Level.INFO, "oldForm: {0}", oldForm.getIdfinalcosting());
//move conferenceID of old conference entry to new entry.
newForm.setIdfinalcosting(oldForm.getIdfinalcosting());
logger.log(Level.INFO, "newForm: {0}", newForm.getIdfinalcosting());
finalDao.edit(newForm);
}
}