2 Replies Latest reply on Sep 14, 2006 7:53 AM by db__

    @GeneratedValue for non-PK fields

      From the JEE 5 API:


      The GeneratedValue annotation may be applied to a primary key property or field of an entity or mapped superclass in conjunction with the Id annotation.


      Am I correct in saying that this means that you can ONLY use the @GeneratedValue annotation on fields that are Primary Keys. If so, isn't this a limitation of the spec?