1 Reply Latest reply on Nov 14, 2004 9:53 AM by Alexey Loubyansky

    Primary key for created instance is null

    Johan Borchers Newbie

      Hello,

      I get this message with the combination of:
      <entity-command name="mysql-get-generated-keys"/>
      and
      <container-configuration extends="Standard CMP 2.x EntityBean">
      <container-name>Delayed CMP 2.x EntityBean</container-name>
      <insert-after-ejb-post-create>true</insert-after-ejb-post-create>
      </container-configuration>

      I'm using JBoss 3.2.6 en MySQL 4.0.20a with an autoincrement PK.
      I was trying the <insert-after-ejb-post-create> element. Without I don't have problems with the insert.
      Is the combination not possible?

      T.I.A.

      Johan.