Top Description Methods
org.hibernate.metamodel.model.domain

public Interface SingularPersistentAttribute<D, J>

extends SingularAttribute<D, J>, PersistentAttribute<D, J>, SqmPathSource<J>, SqmJoinable<D, J>
Known Direct Implementers
org.hibernate.metamodel.model.domain.internal.SingularAttributeImpl, org.hibernate.query.derived.AnonymousTupleSqmAssociationPathSource
Imports
jakarta.persistence.metamodel.SingularAttribute, org.hibernate.query.sqm.SqmJoinable, .SqmPathSource

Extension of the JPA-defined SingularAttribute interface.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public ManagedDomainType<D>
getDeclaringType()

Redeclares jakarta.persistence.metamodel.Attribute.getDeclaringType, org.hibernate.metamodel.model.domain.PersistentAttribute.getDeclaringType.

Return the managed type representing the type in which the attribute was declared.
public default Class<J>
getJavaType()

Implements jakarta.persistence.metamodel.Attribute.getJavaType.

Return the Java type of the represented attribute.
public SqmPathSource<J>
public DomainType<J>
getSqmPathType()

Redeclares org.hibernate.query.sqm.SqmPathSource.getSqmPathType.

The type of path this source creates.
public SimpleDomainType<J>
getType()

Redeclares jakarta.persistence.metamodel.SingularAttribute.getType.

Return the type that represents the type of the attribute.
public default DomainType<?>
getValueGraphType()

Implements org.hibernate.metamodel.model.domain.PersistentAttribute.getValueGraphType.

For a singular attribute, the value type is defined as the attribute type
Inherited from jakarta.persistence.metamodel.SingularAttribute:
isIdisOptionalisVersion
Inherited from org.hibernate.metamodel.model.domain.PersistentAttribute:
getAttributeClassificationgetAttributeJavaTypegetKeyGraphType
Inherited from org.hibernate.query.sqm.SqmJoinable:
createNavigablePathcreateSqmJoingetName
Inherited from org.hibernate.query.sqm.SqmPathSource:
createSqmPathfindSubPathSourcefindSubPathSourcegetExpressiblegetIntermediatePathSourcegetPathNamegetSqmTypegetSubPathSourcegetSubPathSourceisGeneric

Method Detail

getDeclaringTypeback to summary
public ManagedDomainType<D> getDeclaringType()

Redeclares jakarta.persistence.metamodel.Attribute.getDeclaringType, org.hibernate.metamodel.model.domain.PersistentAttribute.getDeclaringType.

Doc from jakarta.persistence.metamodel.Attribute.getDeclaringType.

Return the managed type representing the type in which the attribute was declared.

Returns:ManagedDomainType<D>

declaring type

Annotations
@Override
getJavaTypeback to summary
public default Class<J> getJavaType()

Implements jakarta.persistence.metamodel.Attribute.getJavaType.

Doc from jakarta.persistence.metamodel.Attribute.getJavaType.

Return the Java type of the represented attribute.

Returns:Class<J>

Java type

Annotations
@Override
getPathSourceback to summary
public SqmPathSource<J> getPathSource()
getSqmPathTypeback to summary
public DomainType<J> getSqmPathType()

Redeclares org.hibernate.query.sqm.SqmPathSource.getSqmPathType.

Doc from org.hibernate.query.sqm.SqmPathSource.getSqmPathType.

The type of path this source creates.

Annotations
@Override
getTypeback to summary
public SimpleDomainType<J> getType()

Redeclares jakarta.persistence.metamodel.SingularAttribute.getType.

Doc from jakarta.persistence.metamodel.SingularAttribute.getType.

Return the type that represents the type of the attribute.

Returns:SimpleDomainType<J>

type of attribute

Annotations
@Override
getValueGraphTypeback to summary
public default DomainType<?> getValueGraphType()

Implements org.hibernate.metamodel.model.domain.PersistentAttribute.getValueGraphType.

For a singular attribute, the value type is defined as the attribute type

Annotations
@Override