[hibernate/hibernate-orm] 3fd84f: HHH-12930 fix limitations mapping associations to ...
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 3fd84f14ec2e0d5dbbb58d020fa2d5e69b8aabdc
https://github.com/hibernate/hibernate-orm/commit/3fd84f14ec2e0d5dbbb58d0...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-10-27 (Thu, 27 Oct 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/BinderHelper.java
M hibernate-core/src/main/java/org/hibernate/mapping/Column.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/basics/BasicsRefColNamesTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/basics/PostalCode.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/basics/Region.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/basics/Town.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/basics/TownCode.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/embedded/EmbeddedRefColNamesTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/embedded/PostalCode.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/embedded/Region.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/embedded/Town.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/embedded/TownCode.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/embeddedid/EmbeddedIdRefColNamesTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/embeddedid/PostalCode.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/embeddedid/Region.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/embeddedid/Town.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/embeddedid/TownCode.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/mixed/MixedRefColNamesTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/mixed/PostalCode.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/mixed/Region.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/mixed/Town.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/mixed/TownCode.java
Log Message:
-----------
HHH-12930 fix limitations mapping associations to non-primary unique keys
This now handles cases where the unique key includes @Embeddable properties
of the target entity. It also produces *much* better error messages when
something is wrong.
2 years