Map denormalized hibernate

Posted by Jurgen H on Stack Overflow See other posts from Stack Overflow or by Jurgen H
Published on 2010-04-21T11:43:24Z Indexed on 2010/04/22 8:43 UTC
Read the original article Hit count: 461

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)?

© Stack Overflow or respective owner

Related posts about hibernate

Related posts about denormalization