Hi,
   I have same problem. I have 2 tables on Sybase Anywhere:

@Entity
public class Employee {
   @Id @GeneratedValue
   private Long Id;

   private String name;
...................
}

@Entity
@IdClass(EmpHourId.class)
public class EmpHour {
   @Id
   private Long empId;
   
   @Id
   private Long cpo;
}

My relation is Employee.Id == EmpHour.EmpId. How I can implement it on JPA?
I use Hibernate.
Thanks,
Haim Fridland.
-- 
View this message in context: 
http://n2.nabble.com/%40OneToMany-%40ManyToOne%2C-Bidirectional%2C-Composite-Key-BUG-tp210672p532204.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to