0 Replies Latest reply on Feb 3, 2006 9:48 AM by John Woo

    how to make primary key auto generate for cmp

    John Woo Newbie

      Hi,

      if pk field is set to auto-increase (mysql db) by 2.

      I'm wondering, using cmp:

      1. how to write the ejbCreate method;

      2. how does the client call this create, because this create is type of create (integer), but I want the ejb container auto create pk ;

      3. once server restarts, how to (is it necessary) reset the integer to the one matching table?

      4. any example? (like how the ejb-jar.xml looks like)

      --
      Thanks lots
      John
      Toronto