> HI there Hi,
> My Primary Key (aPositionKey) is a composite object which contains two > fields : contactId, and orgId. Both these fields are contained on one table > (Position), with column names of CONTACT_ID, AND ORG_ID [snip] > and the relevant part of my ejb-jar looks like: > ... > <prim-key-class>au.com.eclipsegroup.worknet.PositionKey</prim-key-class> > <reentrant>False</reentrant> > <cmp-field><field-name>aPositionKey</field-name></cmp-field> > <cmp-field><field-name>title</field-name></cmp-field> > <cmp-field><field-name>isPrimary</field-name></cmp-field> > <cmp-field><field-name>isActive</field-name></cmp-field> > <primkey-field>aPositionKey</primkey-field> >From the ejb1.1 spec - p254 (and part of the dtd) <!-- The primkey-field element is used to specify the name of the primary key field for an entity with container-managed persistence. The primkey-field must be one of the fields declared in the cmp-field element, and the type of the field must be the same as the primary key type. The primkey-field element is not used if the primary key maps to multiple container-managed fields (i.e. the key is a compound key). In this case, the fields of the primary key class must be public, and their names must correspond to the field names of the entity bean class that comprise the key. Used in: entity Example: <primkey-field>EmployeeId</primkey-field> --> essentially, remove the primkey-field element from your ejb-jar.xml and see how you go... also, using development tools like XDoclet - http://sf.net/projects/xdoclet - can avoid this sort of pain (o: cheers dim _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user