Why does Hibernate only Auto-Flush inside a transaction?

Because the docummentation for FlushMode says.

Because the docummentation for FlushMode says The Session is sometimes flushed before query execution in order to ensure that queries never return stale state. This is the default flush mode. So, auto doesn't mean what you think it means.

The name is, arguably, badly chosen, but it doesn't mean a flush is made after each session operation. It's thus not similar to JDBC's autocommit, which makes a commit after ever JDBC statement.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions