Hibernate ORM column level security, extension points

Hello community,

we need to design row and column level security/filtering. The project is the re-implementation of legacy software. The customer wants to have all old security role filterings as it was. Filters are normally connected to entities and that filter can specify conditions with some constants or conditions over columns from tables connected through foreign key relations. More over these conditions (like field1=‘A’, Table.field2 = field1) also shall be used for write rules.
These filters have nothing to do with normal filters in UI logic.

Before I start designing some overlay (technologies are spring-boot jpa) which will just use JPA but provide some custom filtering layer I looking for alternatives. Does anybody had something like this.

And in general what are the extension points of Hibernate ORM and where I can read about it?

Thank you very much in advance!