JPA Annotation Attribute
in javax.persistence.PrimaryKeyJoinColumn

String referencedColumnName default ""


(Optional) The name of the primary key column of the table being joined to.

Defaults to the same name as the primary key column of the primary table of the superclass (JOINED mapping strategy); the same name as the primary key column of the primary table (SecondaryTable mapping); or the same name as the primary key column for the table for the referencing entity (OneToOne mapping).

Since:
JPA 1.0