starnowski / posmulten-hibernate

Integration of Posmulten and Hibernate libraries
GNU Lesser General Public License v2.1
3 stars 0 forks source link

Create RLS policy for JoinTable only when at least on of reference table is tenant aware table #23

Closed starnowski closed 2 years ago

starnowski commented 2 years ago

At this moment the com.github.starnowski.posmulten.hibernate.core.context.metadata.tables.enrichers.JoinTablesDefaultSharedSchemaContextBuilderTableMetadataEnricher component creates RSL policy for all tables even if none of reference table is tenant aware table. This is not expected because by default entities are not tennat aware.