79278399

Date: 2024-12-13 13:01:02
Score: 1
Natty:
Report link

Apparently it's not possible using SQLRestriction.

For your case @Filter & @FilterDef seem to be the way to go wich you can disable using the entity manager.

There is an article describing the exact use case. To access soft deleted data for e.g administrative purposes.

https://www.baeldung.com/spring-jpa-soft-delete

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tobias Peters