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 TypeMethodDescriptionvoidbind(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property) Perform some custom configuration of the model relating to the given annotatedPropertyof 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 annotatedPropertyof the given entity class or embeddable class.- Parameters:
annotation- an annotation of the property that is declared as anAttributeBinderTypepersistentClass- 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- aPropertyobject representing the annotated property
-