Package org.hibernate.binder
Interface AttributeBinder<A extends Annotation>
- All Known Implementing Classes:
AttributeAccessorBinder
,BatchSizeBinder
,CollateBinder
,CommentBinder
,CommentsBinder
,TenantIdBinder
Allows a user-written annotation to drive some customized model binding.
An implementation of this interface interacts directly with model objects
like PersistentClass
and Property
to implement the
semantics of some custom mapping annotation.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property) Perform some custom configuration of the model relating to the given annotatedProperty
of the given entity class or embeddable class.
-
Method Details
-
bind
void bind(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property) Perform some custom configuration of the model relating to the given annotatedProperty
of the given entity class or embeddable class.- Parameters:
annotation
- an annotation of the property that is declared as anAttributeBinderType
persistentClass
- the entity class acting as the ultimate container of the property (differs fromProperty.getPersistentClass()
in the case of a property of an embeddable class)property
- aProperty
object representing the annotated property
-