DISCRIMINATOR based on multi-user work with Spring JPA + Hibernate data

I want to implement a Multi-Tenancy solution based on DISCRIMINATOR for a Model with several tenants based on common schemes - a common database scheme for all tenants.

Technological stack

  • Hibernate 3 Global Filter (I can't use EclipseLink)
  • Spring JPA Data - I want this because we already use this one and we cannot change it.

My questions

  • How to achieve this: Spring JPA data does not support the GLOBAL filter, so I need to add a custom Spring JPA data repository, which can in turn apply a global filter for a solution based on DISCRIMINATOR?
  • Is it possible to implement my requirement with Spring Data JPA + Hibernate 3?
+7
spring-data-jpa hibernate multi-tenant discriminator
source share
1 answer

Using sleep mode filters, you can reach below the points of our application,

  • Multiuser rentals,
  • Login
  • Authentication
  • Row Level Authorization

In our application, we applied this and got great results and applied the same material to other web products. For reference, follow the link below, and you will get some idea of ​​the above materials. http://www.jroller.com/RickHigh/entry/using_spring_aop_and_hibernate

0
source share

All Articles