This content has been marked as final.
Show 1 reply
-
1. Re: @EmbeddedId vs. @IdClass - when shall I use what?
fhh May 4, 2007 11:06 PM (in response to oskar.carlstedt)IMHO @EmbeddedId should be used when the combined pk is either a meaningful entity itself or it reused in your code.
@IdClass is useful to specify that some combination of fields is unique but these do not have a special meaning.
Regards
Felix