ModelAndView mav = new ModelAndView("editPlaneType");
mav.addObject("editPlaneTypeBean", bean);
return mav;
}
PlaneType planeType = bean.getPlaneType();
if (planeType.getId() > 0) {
/**
* Copy the updated values to a new PlaneType object taken directly
* from the database
*/
PlaneType dbPlaneType = getPlaneService().getPlaneType(bean.getPlaneType().getId());
copyPlaneTypeValues(planeType, dbPlaneType);
getPlaneService().updatePlaneType(dbPlaneType);
} else {
getPlaneService().createPlaneType(planeType);
}