Using 4.2.21, the generated SQL is wrong in a different way: {{ select person0_.id as id1_0_0_, person1_.id as id1_0_1_, person0_.parentId as parentId2_0_0_, person1_.parentId as parentId2_0_1_ from Person person0_ left outer join person0_ with (updlock, rowlock )erson1_ with (updlock, rowlock ) on person0_.parentId=person1_.id where person0_.id=? }} Fails due to erson1_. |