Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 87313 invoked from network); 6 Apr 2004 05:04:23 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Apr 2004 05:04:23 -0000 Received: (qmail 23162 invoked by uid 500); 6 Apr 2004 05:04:00 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 23136 invoked by uid 500); 6 Apr 2004 05:04:00 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 16530 invoked from network); 5 Apr 2004 22:33:51 -0000 Mime-Version: 1.0 (Apple Message framework v613) In-Reply-To: <6A621FF8-873B-11D8-A507-000A95782782@apache.org> References: <4FBC27CD-8739-11D8-A507-000A95782782@apache.org> <6A621FF8-873B-11D8-A507-000A95782782@apache.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <51022BD7-8751-11D8-A0EE-000A95782782@forthillcompany.com> Content-Transfer-Encoding: 7bit From: Brian McCallister Subject: Re: OTM CollectionProxy Bug =( Date: Mon, 5 Apr 2004 18:33:52 -0400 To: "OJB Developers List" X-Mailer: Apple Mail (2.613) X-Spam-Status: No, hits=-6.7 required=4.5 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_APPLEMAIL autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Seems the OTMCollectionProxyListener#afterLoad is never being called. The load is called before the listener is added, but I cannot seem to find the right place to use it =( Inserts are identified, but not deletes. -Brian On Apr 5, 2004, at 3:57 PM, Brian McCallister wrote: > are NOT deleted that is > > -Brian > > On Apr 5, 2004, at 3:42 PM, Brian McCallister wrote: > >> Follow that up by changing the refs to the interface so that it *can* >> proxy =) >> >> otm-dependent objects are deleted =( >> >> -Brian >> >> Patch to replicate bug: >> >> Index: src/test/org/apache/ojb/repository_junit_otm.xml >> =================================================================== >> RCS file: >> /home/cvs/db-ojb/src/test/org/apache/ojb/repository_junit_otm.xml,v >> retrieving revision 1.5 >> diff -u -r1.5 repository_junit_otm.xml >> --- src/test/org/apache/ojb/repository_junit_otm.xml 5 Apr 2004 >> 13:58:59 -0000 1.5 >> +++ src/test/org/apache/ojb/repository_junit_otm.xml 5 Apr 2004 >> 19:41:00 -0000 >> @@ -58,6 +58,7 @@ >> element-class-ref="org.apache.ojb.otm.AddressDesc" >> >> collection- >> class="org.apache.ojb.broker.util.collections.ManageableArrayList" >> otm-dependent="true" >> + proxy="true" >> > >> >> >> Index: src/test/org/apache/ojb/otm/Person.java >> =================================================================== >> RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/otm/Person.java,v >> retrieving revision 1.3 >> diff -u -r1.3 Person.java >> --- src/test/org/apache/ojb/otm/Person.java 5 Apr 2004 12:16:25 >> -0000 1.3 >> +++ src/test/org/apache/ojb/otm/Person.java 5 Apr 2004 19:41:00 -0000 >> @@ -16,6 +16,7 @@ >> */ >> >> import java.util.ArrayList; >> +import java.util.List; >> import java.io.Serializable; >> >> public class Person implements Serializable >> @@ -26,7 +27,7 @@ >> private String lastname; >> private Integer mainAddressId; >> private Address mainAddress; >> - private ArrayList otherAddresses; >> + private List otherAddresses; >> >> public Person() >> { >> @@ -88,7 +89,7 @@ >> this.mainAddress = mainAddress; >> } >> >> - public ArrayList getOtherAddresses() >> + public List getOtherAddresses() >> { >> return otherAddresses; >> } >> >> >> >> On Apr 5, 2004, at 3:31 PM, Brian McCallister wrote: >> >>> On the otm-dependent="true" collections, in the otm unit test >>> mappings, add a proxy="true" and bad things start happening =( (ie, >>> dependent tests all fail). >>> >>> I took a stab at it but the solution wasn't obvious. Oleg, any >>> insights? This is a bit of a big problem for me at the moment. >>> >>> -Brian >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org >>> For additional commands, e-mail: ojb-dev-help@db.apache.org >>> >>> >>> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org >> For additional commands, e-mail: ojb-dev-help@db.apache.org >> >> >> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org > For additional commands, e-mail: ojb-dev-help@db.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org