Package org.hibernate.binder.internal
Class CommentBinder
java.lang.Object
org.hibernate.binder.internal.CommentBinder
- All Implemented Interfaces:
AttributeBinder<Comment>
,TypeBinder<Comment>
Handles
Comment
annotations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(Comment comment, MetadataBuildingContext context, Component embeddable) Perform some custom configuration of the model relating to the given annotated embeddable class.void
bind
(Comment comment, MetadataBuildingContext context, PersistentClass entity) Perform some custom configuration of the model relating to the given annotated entity class.void
bind
(Comment comment, MetadataBuildingContext context, PersistentClass entity, Property property) Perform some custom configuration of the model relating to the given annotatedProperty
of the given entity class or embeddable class.
-
Constructor Details
-
CommentBinder
public CommentBinder()
-
-
Method Details
-
bind
public void bind(Comment comment, MetadataBuildingContext context, PersistentClass entity, Property property) Description copied from interface:AttributeBinder
Perform some custom configuration of the model relating to the given annotatedProperty
of the given entity class or embeddable class.- Specified by:
bind
in interfaceAttributeBinder<Comment>
- Parameters:
comment
- an annotation of the property that is declared as anAttributeBinderType
entity
- 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
-
bind
Description copied from interface:TypeBinder
Perform some custom configuration of the model relating to the given annotated entity class.- Specified by:
bind
in interfaceTypeBinder<Comment>
- Parameters:
comment
- an annotation of the entity class that is declared as anTypeBinderType
entity
- the entity class
-
bind
Description copied from interface:TypeBinder
Perform some custom configuration of the model relating to the given annotated embeddable class.- Specified by:
bind
in interfaceTypeBinder<Comment>
- Parameters:
comment
- an annotation of the embeddable class that is declared as anTypeBinderType
embeddable
- the embeddable class
-