Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes @IdClass and @EmbeddedId Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "@IdClass and @EmbeddedId" Watch "@IdClass and @EmbeddedId" New topic
Author

@IdClass and @EmbeddedId

nitin pai
Ranch Hand

Joined: May 30, 2006
Posts: 185
@EmbeddedId is a good way to work with composite primary keys. But why does @IdClass exist. It anyways introduces redundancies and can be error prone.

Can you cite any specific scenario where only @IdClass can be used and not @EmbeddedId?



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @IdClass and @EmbeddedId