Top Description Methods
org.hibernate.binder

public Interface AttributeBinder<A extends java.lang.annotation.Annotation>

Known Direct Implementers
org.hibernate.binder.internal.AttributeAccessorBinder, org.hibernate.binder.internal.CollateBinder, org.hibernate.binder.internal.CommentBinder, org.hibernate.binder.internal.CommentsBinder, org.hibernate.binder.internal.TenantIdBinder
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.mapping.PersistentClass, .Property, java.lang.annotation.Annotation

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.

Author
Gavin King
See Also
org.hibernate.annotations.AttributeBinderType

Method Summary

Modifier and TypeMethod and Description
public void
bind(A
an annotation of the property that is declared as an org.hibernate.annotations.AttributeBinderType
annotation
,
MetadataBuildingContext buildingContext, PersistentClass
the entity class acting as the ultimate container of the property (differs from Property#getPersistentClass() in the case of a property of an embeddable class)
persistentClass
,
Property
a Property object representing the annotated property
property
)

Perform some custom configuration of the model relating to the given annotated Property of the given entity class or embeddable class.

Method Detail

bindback to summary
public void bind(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property)

Perform some custom configuration of the model relating to the given annotated Property of the given entity class or embeddable class.

Parameters
annotation:A

an annotation of the property that is declared as an org.hibernate.annotations.AttributeBinderType

persistentClass:PersistentClass

the entity class acting as the ultimate container of the property (differs from Property#getPersistentClass() in the case of a property of an embeddable class)

property:Property

a Property object representing the annotated property