Hey Keith, You suggest using a mapping file to stop the add from being called. I am using a mapping file, but it still calls the add-method. What should I be doing?, Thanks for your responses. Glenn. -----Original Message----- From: Keith Visco [mailto:[EMAIL PROTECTED]] Sent: 26 September 2001 00:15 To: [EMAIL PROTECTED] Subject: Re: [castor-dev] addXXX inference... The introspector does look for "add" methods when dealing with collections. It has had this behavior for 2 years...ever since the first release of Castor. "add<class-name>" methods allow the class to handle the population of the collection and allow for more optimized ways of dealing with the collections. If you need to prevent an add-method from being called, you'll need to use a mapping file, and not rely on default introspection. --Keith "Russell, Glenn" wrote: > > Hey, > > Can anyone confirm/refute my claim that when using Collections, Castor looks > for a method like addXXX, where XXX is the name of another class?. I have > only just seen this happen, and have never noticed it before. > > This method is definitely being invoked by > org.exolab.castor.persist.FieldMolder, but for the life of me I can't figure > out why. If I change the method addXXX signature by adding an extra > character to the name, Castor doesn't call it. > > It does this when trying to load the Collection. > > I am using the CVS version of Castor. > > Mapping file can be viewed at http://www.openai.com/conf/tms_mapping.xml > > This occurs with the > com.spirentsystems.applications.aura.modules.catalog.domain.Part class > definition > > Thanks, > > Glenn. > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
