Chris-

Castor should marshal/unmarshal elements and attributes in the order
they are in the mapping file.  If they are not in the order you
specify, then it is possible for some reason Castor isn't using the
mapping file you've specified.  One common problem is calling one of
the static marshal/unmarshal methods.  Can you post the code you use
to marshal/unmarshal the objects?

Thanks,
Stephen


On 4/18/06, ELVART, CHRISTOPHER (SBCSI) <[EMAIL PROTECTED]> wrote:
> I have a class with a bunch of fields.  The class was given to me and I
> can not change it.
>
> I have a mapping that lists the fields I am interested in in the order I
> want them but Castor 1.0 ignores my order and puts them in some
> seemingly random order.
>
> Is there a way to get Castor to respect my order.  It is important
> because if you call setField1() then setField2() you get a different
> object state than if you call them in the reverse order.
>
> I have the same problem with a list of attributes.
>
> Thanks,
> Chris Elvart
> AT&T
>
>
> -------------------------------------------------
> If you wish to unsubscribe from this list, please
> send an empty message to the following address:
>
> [EMAIL PROTECTED]
> -------------------------------------------------
>
>

Reply via email to