I am getting error:
Exception in thread \"main\" org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
With Hibernate 4.x and Spring 4.x, just Add @Transactional after @Repository it will solve this synchronizaion exception.