(Check the attached project. TestHibernate class) Use case: Simple entity implements simple interface. This query works: "from com.howtodoinjava.hibernate.test.dto.TestEntity u where (u.name = ?1)" This query also works: "from com.howtodoinjava.hibernate.test.Test u" This query however fails: "from com.howtodoinjava.hibernate.test.Test u where (u.name = ?1)" with StackOverflowException. This used to work with 5.6.x branches. |