import threading from contextlib import contextmanager _state = threading.local()
@Entity @Table(name = "invoices") @FilterDef( name = "tenantFilter", parameters = @ParamDef(name = "tenantId", type = String.class) )