Yes, I am using static methods. Can it be a reason for my problem ?

Laurent For�t.

----- Original Message -----
From: "Arnaud Blandin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 9:47 AM
Subject: Re: [castor-dev] order xml node with the Marshaller.


> Hi Laurent,
>
> Are you sure that you aren't using the static method of the Marshalling
> Framework and that your mapping is correctly set?
>
> Arnaud
>
> > -----Original Message-----
> > From: Laurent For�t [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 9:45 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [castor-dev] order xml node with the Marshaller.
> >
> > My first example is :
> >
> > I have the following mapping :
> >
> >   <class
> >
> name="com.clipack.persistence.customer.ComplementaryInformation_PState"
> >          identity="idComplementaryInf" key-generator="MAX">
> >     <description>Address and so on...</description>
> >     <map-to table="COMPLEMENTARY_INFORMATION"
> > xml="complementary_information" />
> >     <field name="idComplementaryInf" type="integer" >
> >       <sql name="ID_COMPLEMENTARY_INF" type="integer"/>
> >       <xml node="attribute"/>
> >     </field>
> >     <field name="firstName" type="string">
> >       <sql name="FIRST_NAME" type="char"/>
> >       <xml node="attribute" />
> >     </field>
> >     <field name="lastName" type="string">
> >       <sql name="LAST_NAME" type="char"/>
> >       <xml node="attribute" />
> >     </field>
> >     <field name="street1" type="string">
> >       <sql name="STREET1" type="char"/>
> >       <xml node="attribute" />
> >     </field>
> >     <field name="street2" type="string">
> >       <sql name="STREET2" type="char"/>
> >       <xml node="attribute" />
> >     </field>
> >     <field name="town" type="string">
> >       <sql name="TOWN" type="char"/>
> >       <xml node="attribute" />
> >     </field>
> >     <field name="state" type="string">
> >       <sql name="STATE" type="char"/>
> >       <xml node="attribute" />
> >     </field>
> >     <field name="zipCode" type="string">
> >       <sql name="ZIP_CODE" type="char"/>
> >       <xml node="attribute" />
> >     </field>
> >     <field name="country" type="string">
> >       <sql name="COUNTRY" type="char"/>
> >       <xml node="attribute" />
> >     </field>
> >     <field name="phone" type="string">
> >       <sql name="PHONE" type="char"/>
> >       <xml node="attribute" />
> >     </field>
> >     <field name="fax" type="string">
> >       <sql name="FAX" type="char"/>
> >       <xml node="attribute" />
> >     </field>
> > </class>
> >
> > I have the following result after marshalling an object:
> >
> > <address id-complementary-inf="2320">
> >       <zip-code>55800</zip-code>
> >       <country>France</country>
> >       <fax>0.33.3.25.75.38.00</fax>
> >       <street1>usine de sdqg</street1>
> >       <phone>0.33.25.72.07</phone>
> >       <town>vodgsy</town>
> >    <first-name>Twsfc Voisey</first-name>
> > </address>
> >
> > According to my mapping, all the nodes should be attributes. Is it due
> to
> > that the nodes, I want to marshall are Strings ?
> >
> > If I change the mapping to put all the String field as element, I have
> the
> > same result. And, I wanted to have the nodes ordered like specified in
> my
> > mapping. How can I do ?
> >
> > Thanks a lot.
> >
> > Laurent For�t.
> >
> >
> > ----- Original Message -----
> > From: "Keith Visco" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, May 10, 2002 9:01 PM
> > Subject: Re: [castor-dev] order xml node with the Marshaller.
> >
> >
> > >
> > >
> > > Laurent For�t wrote:
> > > >
> > > > Hello,
> > > >
> > > >     When an object is marshalled , it seems that the order of
> appearance
> > of
> > > > my xml nodes doesn't respect the order in my mapping.
> > > >     Is there any way to make marshalled nodes ordered ?
> > >
> > > Order of element nodes should respect order. Can you provide an
> example
> > > so that we can see what's going on?
> > >
> > > Order of attribute nodes does not necessarily respect order, which
> is
> > > valid for any XML document.
> > >
> > > --Keith
> > >
> > > -----------------------------------------------------------
> > > 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
>
>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to