The PrimaryKeyJoinColumn annotation is used to join the primary table of an
entity subclass in the JOINED mapping strategy to the primary table of its
superclass; it is used with a SecondaryTable annotation to join a secondary
table to a primary table; and it may be used in a OneToOne mapping
thank pimpf.
I test it like this:
EmpPK.java
public class EmpPK {
| public Integer id;
| public String name;
| }
EmployeeInfo.java
@Entity
| @IdClass(EmpPK.class)
| public class EmployeeInfo {
| @Id @Column(name=EMP_ID)
| Integer id;
| @Id