Package org.hibernate.annotations
Annotation Type TenantId
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface TenantId
Identifies a field of an entity that holds a tenant id in discriminator-based multitenancy.- Since:
- 6.0
- See Also:
CurrentTenantIdentifierResolver