Package org.hibernate.binder.internal
Class TenantIdBinder
- java.lang.Object
-
- org.hibernate.binder.internal.TenantIdBinder
-
- All Implemented Interfaces:
AttributeBinder<TenantId>
public class TenantIdBinder extends Object implements AttributeBinder<TenantId>
Sets up filters associated with aTenantId
field
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILTER_NAME
static String
PARAMETER_NAME
-
Constructor Summary
Constructors Constructor Description TenantIdBinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
FILTER_NAME
public static final String FILTER_NAME
- See Also:
- Constant Field Values
-
PARAMETER_NAME
public static final String PARAMETER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-