title: What is referencedColumnName used for in JPA?
body: <p>In JPA there is an attribute called <code>referencedColumnName</code> that can be set on <code>@JoinColumn, @PrimaryKeyJoinColumn</code> what is the idea behind this setting, can someone give a good example of where this can be used?</p>