Example code for Blog Post http://girlcoderuk.wordpress.com/2013/07/14/configuring-hibernate-and-spring-for-standalone-application/