[jboss-user] [EJB 3.0] - Re: Advanced problems with Jboss and Hibernate !

2006-11-13 Thread konstantin.ermakov
Yes, exactly. For me it was a big problem to understand how the composite key concept works. But it became clear after I generated some beans from the datbase structure with the JAG product: http://jag.sourceforge.net. I can recommend you to generate some examples and you will see the best

[jboss-user] [EJB 3.0] - Re: Advanced problems with Jboss and Hibernate !

2006-11-10 Thread DivxYoda
Hi konstantin thanks alot for your reply, do you mean that i shoul have : @Entity @Table(name = Daughter) @IdClass(DaughterKey.class) @PrimaryKeyJoinColumn(name = Mother_id) public class Daughter extends Mother{ private String daughter_id; @Id private DaughterKey myKey=new DaughterKey();