48495051525354555657
return getSession().createQuery("from Service order by description") .list(); } public void deleteService(Long serviceId) { Service service = getService(serviceId); if (service != null) { getSession().delete(service); } }
51525354555657585960
return null; } } public void createService(String description, String image) { Service service = new Service(); service.setDescription(description); service.setImage(image); serviceDAO.createService(service); }