Package org.hibernate.tuple
Interface AttributeBinder<A extends Annotation>
-
- All Known Implementing Classes:
AttributeAccessorBinder,TenantIdBinder
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
PersistentClassandPropertyto implement the semantics of somecustom mapping annotation.- See Also:
AttributeBinderType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property)Perform some custom configuration of the model relating to the given annotatedPropertyof the givenentity classorembeddable 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 annotatedPropertyof the givenentity classorembeddable 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
-
-