This question is titled similar to this one, but it's no duplicate as the other OP actually wanted something else (anyway, there's no answer to my question there). What I want is to recycle my already constructed Criteria
in Subqueries.exists(DetachedCriteria)
.
I know that Criteria
is basically DetachedCriteria
with an attached Session
, so I'd expect something like Criteria#toDetached()
or a factory method on the other side, but I can't find anything.