[JBoss-user] Please help! I meet a CMP Relationship problem:(

2002-09-01 Thread ggngenan
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

Re: [JBoss-user] Please help! I meet a CMP Relationship problem:(

2002-09-01 Thread David Jencks
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.

Re: [JBoss-user] Please help! I meet a CMP Relationship problem:(

2002-09-01 Thread Dmitri Colebatch
: [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

Re: [JBoss-user] Please help! I meet a CMP Relationship problem:(

2002-09-01 Thread Dmitri Colebatch
to your code. David has answered this query correctly (surprise surprise) (o: cheers dim 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