Hallo everyone,
there is a property in our project which should be saved in the database:
private map<String, map<String, RelExpColumn>> caches;
I used the Hibernate-Tool to generate Mapping-Konfiguration for this property and got this one:
<map name="caches" table="RELEXPCOLUMN" lazy="true" access="field"> <key> <column name="M_STRCOLUMN" /> </key> <map-key type="java.lang.String"></map-key> <element type="java.lang.String"> <column name="CACHES" /> </element> </map>
And it does not work because each component of the property caches is also a map. But according to this Mapping-Konfiguration, these components are mapped as String. Please tell me how to map this property.Thanks.
|