I am currently upgrading from xdoclet 1.2 to 2.0.

I would assume that I would be able to do:

           /**
         * @hibernate.map table="settings" cascade="all" lazy="true" 
         *                              collection-type="map"
         * @hibernate.key column="id" 
         * @hibernate.index column = "propKey" 
         * @hibernate.composite-element class="no.telio.model.Settings"
            */

To get something like the following in my hbm.xml file:

    <map collection-type="map" cascade="all" lazy="true"
table="settings"
name="settings">
      <key column="id"/>
      <index column="propKey"/>
      <composite-element class="no.telio.model.Settings">
        (properties from the Settings class)
      </composite-element>
    </map>

However, it seems like the composite-element tag is now a class level
tag. Have I missed something obvious here, or should composite-element
be a method-level tag like @hibernate.element?

Geir


Reply via email to