Working RESTful resource using Spring, Hibernate and MySQL