Hibernate filters don't apply to findById: a multi-tenancy leak in Spring Boot 4
Mahmoud Farouk for TENMATECH Digital Solutions #java #springboot #security #hibernate Single-schema multi-tenancy with a Hibernate filter is a popular pattern. Every tenant table has a tenant_id column, a @Filter adds tenant_id =:tenantId to every query, and an aspect turns the filter on…