Friday, November 04, 2005

Another Hibernate bug: subqueries with Criteria API

First of all, a ClassCastException. But I was lucky that someone also had this problem and created a patch to solve this problem. Check it here at Hibernate JIRA Issue.

I even made a contribution updating the patch to the latest Hibernate version (3.1rc2). Fortunately compiling Hibernate is quite fast.

Even with this patch applied, I still couldn't make my subqueries to work. A entry in the Hibernate Forum would mention another bug, but this had a workaround (and I didn't have to recompile Hibernate once again :-).
Post a Comment