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

public Interface SingularPersistentAttribute<D, J>

extends SingularAttribute<D, J>, PersistentAttributeDescriptor<D, J>
Known Direct Implementers
org.hibernate.metamodel.model.domain.internal.SingularAttributeImpl
Imports
javax.persistence.metamodel.SingularAttribute

Hibernate extension to the JPA SingularAttribute descriptor
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public ManagedTypeDescriptor<D>
public default Class<J>
getJavaType()

Implements javax.persistence.metamodel.Attribute.getJavaType.

Return the Java type of the represented attribute.
public SimpleTypeDescriptor<J>
getType()

Redeclares javax.persistence.metamodel.SingularAttribute.getType.

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

Implements org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor.getValueGraphType.

For a singular attribute, the value type is defined as the attribute type
Inherited from javax.persistence.metamodel.SingularAttribute:
isIdisOptionalisVersion
Inherited from org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor:
getKeyGraphType

Method Detail

getDeclaringTypeback to summary
public ManagedTypeDescriptor<D> getDeclaringType()

Redeclares javax.persistence.metamodel.Attribute.getDeclaringType, org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor.getDeclaringType.

Doc from javax.persistence.metamodel.Attribute.getDeclaringType.

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

Returns:ManagedTypeDescriptor<D>

declaring type

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

Implements javax.persistence.metamodel.Attribute.getJavaType.

Doc from javax.persistence.metamodel.Attribute.getJavaType.

Return the Java type of the represented attribute.

Returns:Class<J>

Java type

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

Redeclares javax.persistence.metamodel.SingularAttribute.getType.

Doc from javax.persistence.metamodel.SingularAttribute.getType.

Return the type that represents the type of the attribute.

Returns:SimpleTypeDescriptor<J>

type of attribute

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

Implements org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor.getValueGraphType.

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

Annotations
@Override