Affects: 5.2.6
The javadoc for org.springframework.orm.hibernate5.support.OpenSessionInViewFilter
mentions FlushMode.NEVER
:
* <p><b>NOTE</b>: This filter will by default <i>not</i> flush the Hibernate Session,
* with the flush mode set to {@code FlushMode.NEVER}. It assumes to be used
* in combination with service layer transactions that care for the flushing: The
* active transaction manager will temporarily change the flush mode to
* {@code FlushMode.AUTO} during a read-write transaction, with the flush
* mode reset to {@code FlushMode.NEVER} at the end of each transaction.
However there is currently no FlushMode.NEVER
in org.hibernate.FlushMode
, it was removed in hibernate 5.2.
Should there be FlushMode.MANUAL
?