In JPA there is an attribute called referencedColumnName that can be set on @JoinColumn, @PrimaryKeyJoinColumn what is the idea behind this setting, can someone give a good example of where this can be used?
In JPA there is an attribute called referencedColumnName that can be set on @JoinColumn,
Share
It is there to specify another column as the default id column of the other table, e.g. consider the following