Package org.hibernate.binder
Interface TypeBinder<A extends Annotation>
-
- All Known Implementing Classes:
CommentBinder
,CommentsBinder
@Incubating public interface TypeBinder<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
andComponent
to implement the semantics of some custom mapping annotation.- See Also:
TypeBinderType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bind(A annotation, MetadataBuildingContext buildingContext, Component embeddableClass)
Perform some custom configuration of the model relating to the given annotatedembeddable class
.void
bind(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass)
Perform some custom configuration of the model relating to the given annotatedentity class
.
-
-
-
Method Detail
-
bind
void bind(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass)
Perform some custom configuration of the model relating to the given annotatedentity class
.- Parameters:
annotation
- an annotation of the entity class that is declared as anTypeBinderType
persistentClass
- the entity class
-
bind
void bind(A annotation, MetadataBuildingContext buildingContext, Component embeddableClass)
Perform some custom configuration of the model relating to the given annotatedembeddable class
.- Parameters:
annotation
- an annotation of the embeddable class that is declared as anTypeBinderType
embeddableClass
- the embeddable class
-
-