org.hibernate.metamodel.model.domain.IdentifiableDomainType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core-jakarta Show documentation
Show all versions of hibernate-core-jakarta Show documentation
Hibernate O/RM implementation of the Jakarta Persistence specification
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();
}