Hi Keith, I'm using Castor 0.9.3.19 .. june/5 release.
Romilson ----- Original Message ----- From: "Keith Visco" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 25, 2002 11:54 PM Subject: Re: [castor-dev] Bug in auto-complete="true' ???? > > Romilson, > > Which version of Castor are you using? > > --Keith > > > "Romilson C. Carvalho" wrote: > > > > Hi , i has found strange behavior of auto-complete="true" in > > AddressBook class : > > > > FIRST TEST: > > > > My mapping file: > > > > <mapping> > > <class name="AddressBook" auto-complete="false"> > > <field name="Persons" type="Person" collection="collection"/> > > </class> > > <class name="Person" auto-complete="true"/> > > </mapping> > > > > > > My resultant document: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <address-book> > > <persons> > > <date>1980-04-21T00:00:00.000-03:00</date> > > <name>Romilson</name> > > <register>M7145444</register> > > </persons> > > <persons> > > <date>1980-04-18T00:00:00.000-03:00</date> > > <name>Fabricio</name> > > <register>M8154179</register> > > </persons> > > </address-book> > > > > > > SECOND TEST: > > > > My mapping file ( Only differs in auto-complete="true" ): > > > > <mapping> > > <class name="AddressBook" auto-complete="true"> > > <field name="Persons" type="Person" collection="collection"/> > > </class> > > <class name="Person" auto-complete="true"/> > > </mapping> > > > > > > My resultant document: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <address-book> > > <persons> > > <date>1980-04-21T00:00:00.000-03:00</date> > > <name>Romilson</name> > > <register>M7145444</register> > > </persons> > > <persons> > > <date>1980-04-18T00:00:00.000-03:00</date> > > <name>Fabricio</name> > > <register>M8154179</register> > > </persons> > > <persons xsi:type="person" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > <date>1980-04-21T00:00:00.000-03:00</date> > > <name>Romilson</name> > > <register>M7145444</register> > > </persons> > > <persons xsi:type="person" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > <date>1980-04-18T00:00:00.000-03:00</date> > > <name>Fabricio</name> > > <register>M8154179</register> > > </persons> > > </address-book> > > > > > > > > ------------- > > Here is the strange behavior .. I think the auto-complete="true" > > cannot duplicate the field Persons , my only > > override this. > > > > This is my java classes: > > > > > > public class AddressBook { > > > > public AddressBook() { > > } > > private java.util.Collection persons; > > public java.util.Collection getPersons() { > > return persons; > > } > > public void setPersons(java.util.Collection persons) { > > this.persons = persons; > > } > > } > > > > > > > > public class Person { > > > > public Person() { > > } > > private String name; > > private java.util.Date date; > > private String register; > > public String getName() { > > return name; > > } > > public void setName(String name) { > > this.name = name; > > } > > public void setDate(java.util.Date date) { > > this.date = date; > > } > > public java.util.Date getDate() { > > return date; > > } > > public void setRegister(String register) { > > this.register = register; > > } > > public String getRegister() { > > return register; > > } > > } > > > > > > Thanks for. > > > > Romilson > > > > > > > > > > > > > > > > > > ----------------------------------------------------------- > 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
