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
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();