Hi
Does anyone have an example binding and code snippet which illustrates
the below technique of updating an existing object?
Thanking you in advance
Jon
Thomas Jones-Low
Fri, 09 May 2008 07:16:50 -0700
Using a existing object will require the use of the Factory attribute
for the binding. This is a static method which returns the instance to
be worked on.
The original values to be kept will need a set-method rather than the
default setter, to check for the null value and not update them.
--
Thomas Jones-Low Softstart Services Inc.
[EMAIL PROTECTED] JobScheduler for Oracle
Ph: 802-398-1012 http://www.softstart.com
Tudor Olteanu wrote:
> Hi,
>
> I want Unmarshall to update an existing object instead of creating a new
> one and also to not overwrite the exiting values for optional fields
> that are missing.
>
> I've cast my object to IUnmarshallable and then called
> unmarshal(UnmarshallingContext) on my instance but, for optional fields
> that are missing in xml, unmarshall replace my instance's existing
> values with null values.
>
> Please let me know if there is a solution to preserve the original
> values for optional fields that are missing.
>
> Thanks,
> Tudor
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users