Package org.hibernate.binder
Interface AttributeBinder<A extends Annotation>
-
@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
PersistentClassandPropertyto 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 voidbind(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 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 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
-
-