session/entitymanager is closed
问题 i have this hibernate dao and it works fine while testing in my local machine. but for some transaction it throws IllegalStateException. i believe it is because multiple users hitting at same time.(i may be wrong). UpdatePaymentDao @Repository public class UpdatePaymentImpl implements UpdatePayment { @Autowired SessionFactory sessionFactory; Session session; Transaction trans; private static final long LIMIT = 100000000000L; private static final long LIMIT2 = 10000000000L; private static long