2 Replies Latest reply on Sep 13, 2006 9:21 AM by Juarez Barbosa Jr

    EJB 3.0 - PK Generation with GenerationType

    Juarez Barbosa Jr Newbie

      Hi there,

      The types of primary key generation are defined by the GenerationType enum as shown below (from the ejb-3_0-fr-spec-persistence.pdf Final release):

      public enum GenerationType { TABLE, SEQUENCE, IDENTITY, AUTO };

      But as far as I understood there's no way to use user defined key strategy, i mean, what if I want to generate the keys myself?

      Please accept my apologies if there's another thread here regarding this issue but I've not been able to find it.

      Can't we use legacy databases with EJB 3.0??? Please could someone help?

      Thanks in advance!

      BR,

      Juarez Jr