0 Replies Latest reply on Dec 15, 2003 3:29 AM by todorg70

    compound primary key for EntityBean in JBoss 3.2

    todorg70 Newbie

      Hi All,

      I've got a problem with a compound primary key for an EntityBean in JBoss 3.2.2.
      I've created my entity bean with XDoclet v1.2, and I've got the corresponding MyBeanPK class and all the settings in the .xml descriptors but in a simple test I got this error:

      16:39:08,945 ERROR [STDERR] javax.ejb.EJBException: Internal error getting primary key field member abteilungId; CausedB
      yException is:
      null
      16:39:08,955 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.getPrimaryKeyValue(JDBCAbstractCMPFieldBridge.java:242)
      16:39:08,966 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.injectPrimaryKeyIntoInstance(JDBCEntityBridge.java:662)
      16:39:08,966 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:106)
      16:39:08,976 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:76)
      16:39:08,976 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:577)
      ...

      I have no idea about the problem and what exactly is missing in my implementation (JBoss specific maybe).
      I appreciate any help, hint or a link to such a working example for JBoss.

      Thanks in advance.

      Best Regards,
      Todor