[
http://jira.codehaus.org/browse/JIBX-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137689#action_137689
]
Dennis Sosnoski commented on JIBX-201:
--------------------------------------
JiBX reuses existing objects where possible, meaning that if you are
unmarshalling to a root object which has some linked (child) objects those
linked objects will be reused. For example, if you have a Customer object with
a linked Address object, that same Address object will be passed to the
unmarshalling code for the address portion of the XML. If the original object
reference is null a new instance will be created and used for unmarshalling.
In the case of optional components of the XML, existing object references will
be replaced by null when unmarshalling if the XML component is missing from the
document.
Hope that helps. I'm trying to figure out a good place to add this information
to the documents. Suggestions are welcome.
> document how to reuse objects
> -----------------------------
>
> Key: JIBX-201
> URL: http://jira.codehaus.org/browse/JIBX-201
> Project: JiBX
> Issue Type: Wish
> Components: core
> Reporter: stefan stieglitz
> Priority: Minor
>
> The binding definition of the collection element talks about reusing objects.
> This is the only place in the documentation that discusses this topic. Is it
> possible to update existing objects with data from an xml stream? If so
> please document how.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs