2 Replies Latest reply on Apr 7, 2004 9:05 AM by Knut Klünker

    entity-command pk-generation hsqldb-fetch-key

    Knut Klünker Newbie


      I want generate a primary key using the <entity-command name="hsqldb-fetch-key"/>, but JBoss throws the following exception:
      Error while creating table ADRESSE; -nested throwable: (java.sql.SQLException: Attempt to define a second primary key in statement(...).
      There are no db-tables before.
      What's wrong.

      When I'am using the:
      <entity-command name="pk-sql"

      SELECT ...


      JBoss cannot find the defined class.
      What I have to do that JBoss will find it?