|
The query returns a org.hibernate.bugs.Result but the second parameter of createQuery is A.class, which is wrong. However, Hibernate does not report an error. The same code does throw an IllegalArgumentException with Hibernate 5.6.15. Test case is attached. |