I have a Summary class which contains a list of Qualities. A Quality contains a String name and int value. This data is stored in a denormalized db structure, one table only, for both Summary and Quality.
Quality table:
id, somefileds, qualityname1, qualityvalue1, qualityname2, qualityvalue2, qualityname3, qualityvalue3
For each quality name & value pairs, a new Quality object must be inserted in the Summary class.
How to map this in hibernate (xml hibernate mapping)?