fix incorrect javadoc of FlushMode

This commit is contained in:
Gavin 2023-05-13 20:15:33 +02:00 committed by Christian Beikov
parent 9b4ed961b8
commit a347cd8098
1 changed files with 13 additions and 6 deletions

View File

@ -34,20 +34,27 @@ public enum FlushMode {
/** /**
* The {@link Session} is flushed when {@link Transaction#commit()} * The {@link Session} is flushed when {@link Transaction#commit()}
* is called. * is called. It is never automatically flushed before query
* execution.
*
* @see FlushModeType#COMMIT
*/ */
COMMIT, COMMIT,
/** /**
* The {@link Session} is sometimes flushed before query execution * The {@link Session} is flushed when {@link Transaction#commit()}
* in order to ensure that queries never return stale state. This * is called, and is sometimes flushed before query execution in
* is the default flush mode. * order to ensure that queries never return stale state. This is
* the default flush mode.
*
* @see FlushModeType#AUTO
*/ */
AUTO, AUTO,
/** /**
* The {@link Session} is flushed before every query. This is almost * The {@link Session} is flushed when {@link Transaction#commit()}
* always unnecessary and inefficient. * is called and before every query. This is usually unnecessary and
* inefficient.
*/ */
ALWAYS; ALWAYS;