According to my understanding in hibernate (please confirm)
1- You have to session.close() if you get it by getSessionFactory().openSession()
session.close()
getSessionFactory().openSession()
Yeah session.save is not saved to database without have the transaction. Only way to do it is by using the
session.save
true
If this property is used you no need transaction and also you do not need session.flush() or session.close()
session.flush()