I have a simple class which starts 3 threads and saves a new object in each thread. But I am getting exception which i cannot understand. Can anyone help me understand why the e
Call .openSession() instead of .getCurrentSession() after getSessionFactory(). The sessionFactory object is thread-safe but each Session object should be single-threaded.