Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compound primary key in JBoss 3.2

Status
Not open for further replies.

todorg70

Programmer
Dec 12, 2003
1
DE
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 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, documentation, reference or a link to such a working example for JBoss.

Thanks in advance.

Best Regards,
Todor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top