0 Replies Latest reply on Jun 26, 2003 5:28 PM by Scott

    jboss unknown pk question

    Scott Newbie

      I'm using the Unknown PK feature of the EJB 2.0 specification so in the ejb-jar.xml, I do not specify a primkey-field, I specify prim-key-class as java.lang.Object, ejbCreate returns Object and findByPrimaryKey takes Object parameter. Isn't that all I have to do to get jboss to auto-generate primary keys? I'm using the 3.2.1 distribution of jboss and its default database engine.
      Is the jbosscmp-jdbc.xml file required in this case? Documentation seems to indicate that it is not a required file.

      The result is that I receive an exception when I create one of these ejbs saying trying to set NULL to non-NULL-able field.

      Thanks for your help.
      Scott