1 Reply Latest reply on Apr 15, 2005 12:34 AM by fmfaulkner

    AutoIncrement Primary Key in CMP

    Mukti furtado Newbie


      I want to automatically increment the primary key field in the database(MySql) in a CMP bean. I have written the following lines in the jbosscmp-jdbc.xml

      <entity-command name="mysql-get-generated-keys"/>

      But when i get a Nullpointer exception when i try to insert a record through my CMP.
      Can you please tell me where i am going wrong