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

org.hibernate.FetchMode Maven / Gradle / Ivy

The newest version!
/*
 * SPDX-License-Identifier: LGPL-2.1-or-later
 * Copyright Red Hat Inc. and Hibernate Authors
 */
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