I have two maps in a class that I'd like to map to one table.
The both maps are about i18n'zed properties, so that I'm trying to map:
Code:
<map>
<map-key column="language" type="string"/>
<element column="label" type="string"/>
</map>
<map>
<map-key column="language" type="string"/>
<element column="description" type="string"/>
</map>
Is there a way to have this persisted to the same table with such a schema:
Code:
CREATE TABLE products_i18n (
id_product INT,
locale CHAR(2),
label VARCHAR(255),
description TEXT
)
Thanks,
Alex