Class PropertyInferredData
java.lang.Object
org.hibernate.boot.model.internal.PropertyInferredData
- All Implemented Interfaces:
PropertyData
Retrieve all inferred data from an annotated element
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyInferredData(org.hibernate.models.spi.ClassDetails declaringClass, org.hibernate.models.spi.TypeVariableScope ownerType, org.hibernate.models.spi.MemberDetails propertyMember, String propertyAccessor, MetadataBuildingContext buildingContext) Take the annotated element for lazy process -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.models.spi.MemberDetailsReturn the Hibernate mapping propertyReturns the returned class name itself or the element type if an arrayorg.hibernate.models.spi.TypeDetailsReturns the returned class itself or the element type if an arrayorg.hibernate.models.spi.ClassDetailsReturns the returned class itself or the element type if an array or collectionorg.hibernate.models.spi.ClassDetailsReturn the Class the property is declared on If the property is declared on a @MappedSuperclass, this class will be different than the PersistentClass's classorg.hibernate.models.spi.TypeDetailsReturn the class itselfReturns the returned class name itselftoString()
-
Constructor Details
-
PropertyInferredData
public PropertyInferredData(org.hibernate.models.spi.ClassDetails declaringClass, org.hibernate.models.spi.TypeVariableScope ownerType, org.hibernate.models.spi.MemberDetails propertyMember, String propertyAccessor, MetadataBuildingContext buildingContext) Take the annotated element for lazy process
-
-
Method Details
-
toString
-
getDefaultAccess
- Specified by:
getDefaultAccessin interfacePropertyData- Returns:
- default member access (whether field or property)
- Throws:
MappingException- No getter or field found or wrong JavaBean spec usage
-
getPropertyName
- Specified by:
getPropertyNamein interfacePropertyData- Returns:
- property name
- Throws:
MappingException- No getter or field found or wrong JavaBean spec usage
-
getPropertyType
Description copied from interface:PropertyDataReturn the class itself- Specified by:
getPropertyTypein interfacePropertyData- Throws:
MappingException
-
getClassOrElementType
Description copied from interface:PropertyDataReturns the returned class itself or the element type if an array- Specified by:
getClassOrElementTypein interfacePropertyData- Throws:
MappingException
-
getClassOrPluralElement
Description copied from interface:PropertyDataReturns the returned class itself or the element type if an array or collection- Specified by:
getClassOrPluralElementin interfacePropertyData- Throws:
MappingException
-
getClassOrElementName
Description copied from interface:PropertyDataReturns the returned class name itself or the element type if an array- Specified by:
getClassOrElementNamein interfacePropertyData- Throws:
MappingException
-
getTypeName
Description copied from interface:PropertyDataReturns the returned class name itself- Specified by:
getTypeNamein interfacePropertyData- Throws:
MappingException
-
getAttributeMember
public org.hibernate.models.spi.MemberDetails getAttributeMember()Description copied from interface:PropertyDataReturn the Hibernate mapping property- Specified by:
getAttributeMemberin interfacePropertyData
-
getDeclaringClass
public org.hibernate.models.spi.ClassDetails getDeclaringClass()Description copied from interface:PropertyDataReturn the Class the property is declared on If the property is declared on a @MappedSuperclass, this class will be different than the PersistentClass's class- Specified by:
getDeclaringClassin interfacePropertyData
-