I'm trying to understand how container managed persistence make this
happen. I have two EJBs like so:
-----
public interface Foo extends EJBObject {
Long getId() throws RemoteException;
void setId(Long param) throws RemoteException;
String getName() throws RemoteException;
void setName(String param) throws RemoteException;
Bar getBar() throws RemoteException;
void setBar(Bar param) throws RemoteException;
}
public interface Bar extends EJBObject {
Long getId() throws RemoteException;
void setId(Long param) throws RemoteException;
String getName() throws RemoteException;
void setName(String param) throws RemoteException;
}
-----
The idea here is that a Foo has a Bar. The Bar must already exist.
I want this to work through CMP. I can't quite figure out how to tell
JBoss that there's a relationship between Foo and Bar. I've been
playing around with the tags "relationships" and "cmr-field", but I
haven't been able to get it right.
Does anyone have an example that I could follow?
Thanks,
--
Richard Kasperowski (mailto:[EMAIL PROTECTED])
Tel: 617-576-1552, Fax: 617-576-2441
http://www.altisimo.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user