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 TypeMethodDescriptionvoidbind(TenantId tenantId, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property) Perform some custom configuration of the model relating to the given annotatedPropertyof 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:AttributeBinderPerform some custom configuration of the model relating to the given annotatedPropertyof the given entity class or embeddable 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
-