Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] @EmbeeddedId vs @IdClass

Is there any preference in which one to use when it comes to composite Primary Keys? I can see from the documentation that I can use either or, but I'm wondering which one is preferable.

And if I decide to use the @Embeddable annotation on my PrimaryKey class, and @EmbeddedId in my entity,  do I need to annotate the Pk fields with @Column and @Id?

Thanks for the help...

Chris Mathrusse
christopher.mathrusse@xxxxxxxxxx

Back to the top