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

org.hibernate.metamodel.ValueClassification 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 http://www.gnu.org/licenses/lgpl-2.1.html
 */
package org.hibernate.metamodel;

/**
 * At the end of the day, any "value mapping" (id, version, attribute, collection element, etc.)
 * can be one of a few classifications.  This defines an enumeration of those classifications.
 *
 * @author Steve Ebersole
 */
public enum ValueClassification {
	/**
	 * The mapped value is a basic value (String, Date, etc).
	 */
	BASIC,
	/**
	 * ANY is a Hibernate-specific concept.  It is essentially a "reverse discrimination".
	 * Here, the association itself defines a discriminator to the associated entity,
	 * sort of the reverse of discriminator-inheritance.  Here the various associated types
	 * can be unrelated in terms of mapped inheritance.
	 */
	ANY,
	/**
	 * An {@link jakarta.persistence.Embeddable} value
	 */
	EMBEDDABLE,
	/**
	 * Reference to an entity
	 */
	ENTITY
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy