Port a Spring MVC - AJAX - Hibernate