Package jakarta.persistence.metamodel
Interface SingularAttribute<X,T>
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.AttributeAttribute.PersistentAttributeType
 - 
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.BindableBindable.BindableType
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Type<T>getType()Return the type that represents the type of the attribute.booleanisId()Is the attribute an id attribute.booleanisOptional()Can the attribute be null.booleanisVersion()Is the attribute a version attribute.- 
Methods inherited from interface jakarta.persistence.metamodel.AttributegetDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollection
 - 
Methods inherited from interface jakarta.persistence.metamodel.BindablegetBindableJavaType, getBindableType
 
- 
 
- 
- 
- 
Method Detail- 
isIdboolean isId() Is the attribute an id attribute. This method will return true if the attribute is an attribute that corresponds to a simple id, an embedded id, or an attribute of an id class.- Returns:
- boolean indicating whether the attribute is an id
 
 - 
isVersionboolean isVersion() Is the attribute a version attribute.- Returns:
- boolean indicating whether the attribute is a version attribute
 
 - 
isOptionalboolean isOptional() Can the attribute be null.- Returns:
- boolean indicating whether the attribute can be null
 
 
- 
 
-