[JBoss-user] [EJB 3.0] - Re: Can not use PrimaryKeyJoinColumns

2006-03-15 Thread pimpf
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

[JBoss-user] [EJB 3.0] - Re: Can not use PrimaryKeyJoinColumns

2006-03-15 Thread adver11
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