While working on a different issue, we found out that the mapping model assumes that the ParkingSpot#assignedTo association refers to the primary key of Employee, even though the @JoinColumn explicitly specifies the referencedColumnName to be something other than the primary key. This is just a synthetic model that we thought about, and I think the workaround to use mappedBy should be good enough, but I wanted to capture it anyway.
|