Starting with Hibernate ORM 6.2, Hibernate ORM will no longer create a synthetic property for @ManyToOne associations that use a single non-ID foreign key; it will only do so if they use at least two (non-ID?) foreign keys. The cause is unclear, but it’s propbably a side-effect of https://hibernate.atlassian.net/browse/HHH-13054 or https://hibernate.atlassian.net/browse/HHH-15355 . In any case, as a result SyntheticPropertyIT started failing when testing against ORM 6.2. Let's adapt the test so that it makes sense in all versions of Hibernate ORM. |