Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

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

scott.stark@jboss.org

2007-05-04


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
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.