Basic REST API using Spring and Hibernate