[jboss-user] [EJB 3.0] - Re: @EmbeddedId vs. @IdClass - when shall I use what?

fhh do-not-reply at jboss.com
Fri May 4 23:06:14 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043393#4043393

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043393



More information about the jboss-user mailing list