Skip to content

Custom HQL

gert-wijns edited this page May 21, 2014 · 5 revisions

What if I really really need custom hql?

There will be times when you can't express everything you need using the TypeSafeQueryBuilder. When that time comes, you can still inject hql directly into the query. This is of course not recommended, so only do this when there is no other option!

Make use of the CustomTypeSafeValue to inject custom hql into the query. If you provide values, make sure to also provide the ?s.

Some of functions available on query.function() make use of custom type safe values for example (see functions).

Clone this wiki locally