A quick look through the documentation didn't turn up anything like what you're describing. If you're willing to drop the map idea in favour of a component, that would be pretty close to what you want. You would end up with a class like
Code:
class XXX
{
Long id;
String desc;
Taxes taxes;
public class Taxes
{
int monthsTwelve;
int monthsTwentyFour;
int monthsThritySix;
}
}
To do this, add something like this inside your XXX mapping:
Code:
<property ...>
...
<component name="taxes" class="com.me.XXX.Taxes">
<property name="MonthsTwelve" type="integer"/>
...
</component>
Is that close enough to what you want? Note that the Taxes class doesn't have to be inside the XXX class. In fact, I'm not even sure if it allowed to be a nested class. I've only ever used normal classes for this sort of thing.