All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.FetchMode Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
Show newest version
/*
 * 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;

/**
 * Represents an association fetching strategy.
 *
 * @apiNote This enumeration was previously used to override
 * the fetching strategy specified by mapping annotations when
 * using the old criteria query API. Now it is only used by
 * SPIs and internal APIs.
 *
 * @see org.hibernate.annotations.FetchMode
 *
 * @author Gavin King
 */
@Internal
public enum FetchMode  {

	/**
	 * Use the default fetching strategy specified by the
	 * {@linkplain org.hibernate.annotations.Fetch mapping
	 * annotations}.
	 */
	DEFAULT,

	/**
	 * Fetch in the initial select, using an outer join.
	 *
	 * @see org.hibernate.annotations.FetchMode#JOIN
	 */
	JOIN,

	/**
	 * Fetch using a separate subsequent select.
	 *
	 * @see org.hibernate.annotations.FetchMode#SELECT
	 * @see org.hibernate.annotations.FetchMode#SUBSELECT
	 */
	SELECT

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy