Package org.hibernate.binder
Interface AttributeBinder<A extends Annotation>
-
- All Known Implementing Classes:
AttributeAccessorBinder
,BatchSizeBinder
,CollateBinder
,CommentBinder
,CommentsBinder
,TenantIdBinder
@Incubating public interface AttributeBinder<A extends Annotation>
Allows a user-written annotation to drive some customized model binding.An implementation of this interface interacts directly with model objects like
PersistentClass
andProperty
to implement the semantics of some custom mapping annotation.- See Also:
AttributeBinderType
,TypeBinder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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
-
-