java - Dozer: map single field to Set -


how map single field set in dozer?

i have class like:

class foodto {     private iddto bar;     private iddto baz; }  class foodomainobject {     private list<id> ids; } 

i'd map bar , baz ids list, can't this.

i found on dozer support list:

 http://sourceforge.net/projects/dozer/forums/forum/452530/topic/1557144 

basically, use syntax:

       <field>             <a>bar</a>             <b>ids[0]</b>             <b-hint>org.foo.id</b-hint>         </field>        <field>             <a>baz</a>             <b>ids[1]</b>             <b-hint>org.foo.id</b-hint>         </field> 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -