@Transactional
public void updateDish(mDish dish)
{
if (dish!=null)
{
eDish oldDish = daoDish.Read( dish.getId() );
oldDish.setName( dish.getName() );
oldDish.setDescription( dish.getDescription() );
oldDish.setWeight( dish.getWeight() );
oldDish.setPrice( dish.getPrice() );
oldDish.setType( dish.getType() );
daoDish.Update( oldDish );
}
}