[hibernate-issues] [Hibernate-JIRA] (HHH-6496) ClassCastException inside proxy without explicit casting in application code