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

org.hibernate.metamodel.model.domain.PersistentAttribute Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta1
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.model.domain;

import javax.persistence.metamodel.Attribute;

/**
 * Hibernate extension to the JPA {@link Attribute} contract
 *
 * @apiNote Hibernate's attributes differ from JPA's conceptually in
 * that Hibernate's inherently encompass the mapping metadata for the
 * attribute whereas JPA inherently excludes it.  This is much more
 * useful information, but leads to some inconsistencies in the model
 * namely around composites/embeddeds - see {@link EmbeddedDomainType}.
 *
 * @author Steve Ebersole
 */
public interface PersistentAttribute extends Attribute {
	/**
	 * The attribute's type
	 */
	DomainType getAttributeType();

	@Override
	ManagedDomainType getDeclaringType();

	SimpleDomainType getValueGraphType();
	SimpleDomainType getKeyGraphType();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy