Hello,
In Hibernate 5.6, the Renderable
interface supported dynamically rendering HQL fragments and converting them into predicate objects. This allowed me to conveniently use string-based expressions like:
exists(select 1 from A a where a = root_.aid and a.f1 = :f1 and ...)
.
For simple conditions, I could construct predicates using the Criteria API. For complex nested conditions, I could easily write HQL fragments as strings. By implementing Renderable
, predicates were automatically constructed with secure parameter binding.
In version 6.6, I haven’t found a similar implementation approach. Could you advise if there’s an equivalent alternative to achieve this requirement? Alternatively, is such functionality planned for future releases?
Thank you.
@beikov