Filter parameters are not always applied in formula:
{code:java} @Formula(“(select b.foo from bar b where b.id = id and b.baz = :myFilter.param)” public String foo; {code} Loading an entity with EntityManager#find(), the params get applied. But loading the same entity (or entities) with an JQL/HQL query or via the criteria API, the params are not applied.
See the following test case for further details and to reproduce the 3 cases: https://github.com/sbeigel/hibernate-filter-formula |
|