Given the following domain object:
public class Domain {
private String field1 = "one";
private String field2 = "two";
}
how should the mapping.xml file be structured so the XML output looks like this:
<DomainObjects>
<row field1="one">
<field2>two</field2>
</row>
<DomainObjects>
where "DomainObjects
" is a static label.
Thanks very much