<?xml version="1.0"?>
<mapping>
  <class name="Foo">
     <field name="bar" type="Bar" container="true"/>
  </class>

  <class name="Bar">
     <field name="value" type="integer"/>
  </class>
</mapping>
