Package org.hibernate.binder.internal
Class TenantIdBinder
java.lang.Object
org.hibernate.binder.internal.TenantIdBinder
- All Implemented Interfaces:
AttributeBinder<TenantId>
Sets up filters associated with a
TenantId
field-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(TenantId tenantId, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property) Perform some custom configuration of the model relating to the given annotatedProperty
of the given entity class or embeddable class.
-
Field Details
-
FILTER_NAME
- See Also:
-
PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
TenantIdBinder
public TenantIdBinder()
-
-
Method Details
-
bind
public void bind(TenantId tenantId, MetadataBuildingContext buildingContext, PersistentClass persistentClass, 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<TenantId>
- Parameters:
tenantId
- an annotation of the property that is declared as anAttributeBinderType
persistentClass
- 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
-