Restful webservice with Jersey and Hibernate.