A good post on using spring + hibernate + java configuration

http://www.sivalabs.in/2011/02/springhibernate-application-with-zero.html