Package org.hibernate.tuple
Class TenantIdBinder
- java.lang.Object
-
- org.hibernate.tuple.TenantIdBinder
-
- All Implemented Interfaces:
AttributeBinder<TenantId>
public class TenantIdBinder extends Object implements AttributeBinder<TenantId>
Sets up filters associated with aTenantIdfield
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILTER_NAMEstatic StringPARAMETER_NAME
-
Constructor Summary
Constructors Constructor Description TenantIdBinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(TenantId tenantId, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property)Perform some custom configuration of the model relating to the given annotatedPropertyof the givenentity classorembeddable 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:AttributeBinderPerform some custom configuration of the model relating to the given annotatedPropertyof the givenentity classorembeddable class.- Specified by:
bindin interfaceAttributeBinder<TenantId>- Parameters:
tenantId- an annotation of the property that is declared as anAttributeBinderTypepersistentClass- 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- aPropertyobject representing the annotated property
-
-