I am getting error:
Exception in thread \"main\" org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
I had same error as "org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread"
I just used @Transactional(readOnly = false) in my Dao implementation resolved my issue