4 Replies Latest reply on Jul 4, 2002 4:55 PM by dsundstrom

    no "natural" primary key

    agugel

      hi,

      I have two entity beans A and B with a 1:n relation between them. While A have a "natural" primary key --- specified in the ebj-jar.xml as primary-key-field, B has non. The primary key class for B is therefore java.lang.Object.

      It works find with the application server shipped with sun`s J2EE but it seems that JBoss 3.0 can't handle it. The generated SQL statements are invalid, e.g.

      CREATE TABLE .... PRIMARY KEY ())

      and postgres says ")" is not what it wants.

      Maybe this is an unsupported feature??