2 Replies Latest reply on Apr 7, 2004 9:05 AM by schlumpf

    entity-command pk-generation hsqldb-fetch-key

    schlumpf

      Hello,

      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"
      class="org.jboss.ejb.plugins.cmp.jdbc.JDBCPkSqlCreateCommand">

      SELECT ...

      </entity-command>

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

      Thanx
      schlumpf