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

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

The 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 java.util.Set;
import java.util.function.Consumer;
import jakarta.persistence.metamodel.IdentifiableType;
import jakarta.persistence.metamodel.SingularAttribute;

import org.hibernate.query.sqm.SqmPathSource;

/**
 * Extension to the JPA {@link IdentifiableType} contract
 *
 * @author Steve Ebersole
 */
public interface IdentifiableDomainType extends ManagedDomainType, IdentifiableType {
	SqmPathSource getIdentifierDescriptor();

	@Override
	 SingularPersistentAttribute getId(Class type);

	@Override
	 SingularPersistentAttribute getDeclaredId(Class type);

	@Override
	 SingularPersistentAttribute getVersion(Class type);

	@Override
	 SingularPersistentAttribute getDeclaredVersion(Class type);

	@Override
	Set> getIdClassAttributes();

	@Override
	SimpleDomainType getIdType();

	@Override
	IdentifiableDomainType getSupertype();

	boolean hasIdClass();

	SingularPersistentAttribute findIdAttribute();

	void visitIdClassAttributes(Consumer> action);

	SingularPersistentAttribute findVersionAttribute();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy