Tag: Hibernate
All the articles with the tag "Hibernate".
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.
Query Optimization, Part 2: Analyzing SQL and Execution Plans
—viewsThis post describes how I checked query execution counts for read APIs in Hibernate SQL logs and analyzed their actual cumulative costs using PostgreSQL execution plans and pg_stat_statements.