Hibernate provides 2 proprietary features that enable you to define additional filter criteria that Hibernate applies to every query that selects a specific entity class. This video will show you how to use the @FilterDef and @Filter annotations, which is the more flexible approach. You can activate and deactivate filter definitions for your current session and use dynamic parameters in your filter conditions. That enables you to adjust the filter conditions at runtime.
Links mentioned:
How to implement a soft delete with Hibernate: https://thorben-janssen.com/hibernate...
Hibernate Logging Guide – Use the right config for development and production: https://thorben-janssen.com/hibernate...
Like my channel? Subscribe!
➜ http://bit.ly/2cUsid8
Join the free Member Library:
https://goo.gl/dtyIIC
Read the accompanying post: https://thorben-janssen.com/hibernate...
Want to connect with me?
Blog: https://thorben-janssen.com/
Twitter: / thjanssen123
Facebook: / thorbenjanssenofficial
Linkedin: / thorbenjanssen
#Hibernate #@Filter #DynamicFilters