Object wth Nested ObjectList wth standard id

Developers
IT Reppert
2011-12-09
2013-05-02
  • IT Reppert
    IT Reppert
    2011-12-09

    Hi,

    I have an object with a List of Strings.
    I want to map a special item of the list,
    depending on a String at the root of the
    object.

    E.g.

    SourceObject srcObj = new SourceObject();
    String IDofList = srcObj.getStandardID(); <-the Index
    SourceObjectSubObject srcSubObj = srcObj.getSourceObjectSubObject().get(IDofList);

    So I need to map depending on a value in the object ……
    Is this possible without explicitly mapping an instance of the nested object ?

    Regards,
    Holger

     
  • IT Reppert
    IT Reppert
    2011-12-09

    To make it clearer ist it possible to do sth. like this :

    <mapping>
            <class-a>SourceObject</class-a>  
            <class-b>blaObject</class-b>
            <field>
                <a>sourceObjectSubObject.fielda</a>
                <b>blaDestField</b>
            </field>
    </mapping>