1 Reply Latest reply on Sep 12, 2007 4:48 PM by Frank Langelage

    Sequence generators in Embedded PK

    Krzysztof Rudz Newbie

      Is it possible to use sequence generetors in embedded primary keys?

      Example
      We want to use:

      @Id
      @GeneratedValue(strategy=GenerationType.AUTO, generator="NotHeadSeq")
      @Column(name = "nhd_id")


      in class with @Embeddable annotation.

      The class with @Embeddable annotation contains few columns which are supposed to be a composite key.