org.hibernate.annotations.FlushModeType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.annotations;
/**
* Enumeration extending javax.persistence flush modes.
*
* @author Carlos Gonzalez-Cadenas
*/
public enum FlushModeType {
/**
* Corresponds to {@link org.hibernate.FlushMode#ALWAYS}.
*/
ALWAYS,
/**
* Corresponds to {@link org.hibernate.FlushMode#AUTO}.
*/
AUTO,
/**
* Corresponds to {@link org.hibernate.FlushMode#COMMIT}.
*/
COMMIT,
/**
* @deprecated use MANUAL, will be removed in a subsequent release
*/
@Deprecated
NEVER,
/**
* Corresponds to {@link org.hibernate.FlushMode#MANUAL}.
*/
MANUAL,
/**
* Current flush mode of the persistence context at the time the query is executed.
*/
PERSISTENCE_CONTEXT
}