Tag: Criteria API
All the articles with the tag "Criteria API".
Contributing to Hibernate ORM, Part 1: Analyzing the ClassCastException Caused by a Criteria Subquery Type Mismatch and Opening a PR
—viewsA record of analyzing Hibernate ORM issue HHH-18831 and opening a PR. I look at why, starting with Hibernate 6, a mismatch between a Criteria subquery's declared type and its actual select type blows up with a ClassCastException in an unrelated place, using the query processing structures of Hibernate 5 and 6 and the SQM tree, and then fix it so the subquery's select() reuses an existing validation utility and throws immediately.