AngularJS - Spring - Hibernate