I'm running into an issue where the Set<child> class that has 2 JoinColumn annotations.
The query shows the where clause, but the parameters are being mapped backwards.
where
tpaladdrs0_.PROV_ID=?
and tpaladdrs0_.PAL_ID=?
binding 9876 to parameter: 1
binding 1234 to parameter: 2
1234 should be mapped to PROV_ID.
These are reverse engineered classes, so I'm not even sure where to begin.
The Set in the parent class has the keys in alphabetical order (palId, provId), but in debugging, it looks as if hibernate is simply mapping the parameters via a simple loop, not putting the parameter to the id correctly.
Yes, this explanation is clear as mud.
|