I would have a create() method that accepts as parameters the three entities that
comprise the three-way relationship:
public SasAssignmentPK ejbCreate(SampTableLocal table,
ProductGroupLocal prodGroup,
SasLocal sas) throws javax.ejb.CreateException {
setSampTableId(table.getTableId());
setProductGroupId(prodGroup.getGroupId());
setSasId(sas.getSasId());
return null;
}
I would also define equivalent CMR fields (taking care to map them to the same
database columns) for each of these relations, and set the relationship values in a
postCreate() method:
public void ejbPostCreate(SampTableLocal table,
ProductGroupLocal prodGroup,
SasLocal sas) {
setTable(table);
setProductGroup(prodGroup);
setSas(sas);
}
-- Jeff Beal
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828585#3828585
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828585
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user