I read somewhere commit=flush+commit.
I only know that when we call session.flush()
our statements are execute in database but not committed.
Suppose we don't call flush()
method on session object and if we call commit method....it will internally do the work of executing statements on the database and then committing.
commit=flush+commit (in case of functionality)
I am curious about how many network connection this will create.