• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@IdClass and @EmbeddedId

 
nitin pai
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic