I'm using Xdoclet and I'm trying to create a relation from one EJB (a) to two other EJBs (b and c). EJB a will use the same primary key for both relationships. In EJB a I've got @ejb.. and @jboss.. tags for both relationships, but I get a serious Exception when deploying.
The error says: "Both roles of a relation-table mapped relationship must have key fields: ejb-relation-name=group-cmp20-kpi-cmp20, ObjectName: jboss.j2ee:jndiName=/scorecardremote,service=EJB"
If i remove one of the relationships (a-b or a-c) so there is only one relationship left everything works fine, so there is no error there i suppose. But as said, when i try to use both relationships at the same time i get this error. Anyone knows what to do?
How do these relationships are configured in ejb-jar.xml and jbosscmp-jdbc.xml?