If the flash mode is "AUTO" before starting any sleep mode, it will check if there are any tables to update. If so, the flash will be executed differently. If the flash mode is "ALWAYS", then a reset will occur even if there are no tables that need to be updated.
Check out the source, org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush (AutoFlushEvent)
Adi
source share