This is a bug very recently fixed in cvs.

Normally you don't do this.  If you do

coll.add(something);
or
coll.remove(somethingelse);

the database will be updated automatically.  Normally you would use
setXxx(newCollection) only when you are replacing the entire set of related
entities.

However, it was a bug, but I don't think the fix is in any released
versions at the moment.

david jencks

On 2002.09.01 22:27:02 -0400 [EMAIL PROTECTED] wrote:
> 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