| As described in this forum thread, the ClassCastException is not very meaningful. I think that entity graphs should be applied to entity queries only, not to native SQL queries. Therefore, we might want to enforce this rule with a HibernateException. |