Why can't you deal with something like

<role>
  <users>
    <user id="1"/>
    <user id="4"/>
    <user id="6"/>
    <user id="78"/>
  </users>
</role>

It seems like that type of structure would be easier to handle.

-Brian


On 8/31/07, Бронников Владимир <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
>
>
> I have an objects like this:
>
> class User {
>
>   private Integer id;
>
> }
>
>
>
> class Role {
>
>   private Set<User> users;
>
>   ...
>
> }
>
>
>
> I want receive following document after murshalling:
>
> <role>
>
>   <users>1 4 6 78</users>
>
> </role>
>
>
>
> ... node "users" must contain only "id" of objects "User".
>
>
>
> And I want get Set of "User"-objects after unmarshalling. But have no
> information about item-type in my custom marshaller/unmarshaller.
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to