Java console app that integrates Hibernate with Spring