Hi.
I'd like to persist a map containing a few properties and a (simple) array with value semantics. Something like this (which does not work!):
Code:
<component name="paramManager" class="ParameterManager">
<map name="PMap" table="pmap" cascade="all">
<key column="id" not-null="true" />
<map-key-many-to-many column="parametername" class="PDefinition" />
<composite-element class="DVParameter">
<many-to-one name="paramDef" column="paramdefname" not-null="true"/>
<nested-composite-element name="value" class="DValue">
<property name="value" type="calendar" column="value"/>
<property name="time" type="timestamp" column="time"/>
<primitive-array name="morevalues" table="morevaluestable">
<key column="id"/>
<list-index column="index"/>
<element column="valuetime" type="long"></element>
</primitive-array>
</nested-composite-element>
</composite-element>
</map>
</component>
Hibernate version: 3.2