you never really need ot use the setXXX collection method.  The collection
you get will be live, so just add/remove entities to that as required.

your foreign keys would have been cleared because they weren't contained in
the collection that you set.

hth
dim

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 12:27 PM
Subject: [JBoss-user] Please help! I meet a CMP Relationship problem:(


> Hello eveyone:
>     Please help me: I want to use CMP 1:N relationship and have written
"abstract Collection getXxx" and "abstract void setXxx(Collection xxx)".
>     The getter work well but setter seems never take effect. So I did a
experiment that manual insert into database some data to make a
relationship(set foreign key directly) and invoked setter immediately
following getter like this:
>     Collection coll=XXXlocal.getXxx();
>     XXXLocal.setXxx(coll);
>
> to my surprise, all relationship I made manually were gone(foreign key in
database changed to null).
>
> It's my first time to use CMP 1:N relationship, anyone help to tell me
what I am wrong.
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to