1 Reply Latest reply on May 4, 2007 11:06 PM by fhh

    @EmbeddedId vs. @IdClass - when shall I use what?

    Oskar Carlstedt Novice

      Hi all!

      Can anyone explain the difference between the two annotations @IdClass/@Id and @Embeddable/@EmbeddableId. When shall I use @IdClass and when shall I use @EmbeddedId?

      Does anyone of you have a good answer to this? I would really appreciate your help to make me understand what decision to take in different situations.

      Best Regards
      /Oskar