java web application with spring-mvc and hibernate.