Hibernate @Filter Annotation: Apply Dynamic Filters at Runtime

preview_player
Показать описание
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:

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?

Рекомендации по теме
Комментарии
Автор

Great video, I just needed to watch it with in 1.5x velocity and worked wonderful

jorgealvarez-mkvq
Автор

Thank you sir that's helpful. We want videos about using JPA Specification and criteria API in real world examples.

mohamedsabri
Автор

Very informative demo !!
One question - Can @filter work on native query in jpa ?

MrJagtapranjit
Автор

Thank you for the video, very helpful! You mentioned, for various reasons, that Filters should not be used for security purposes. I had intended to use filters in a custom Aspect to automatically filter Entity results based on Sprig Security ACL permissions. If not the Filters API, what would you suggest for that use-case?

rjendoubi
Автор

How to filter the data according to month by using criteria query in spring boot ?

raghavendrac
Автор

How to works @FilterJoinTable annotation with cascade all?

dilininimesha
Автор

is the Filter condition similar to where condition? I would generally add a where clause for from and to date

vishalsundararajan