TheKing99 wrote:
I'm trying to declare a persistent map.
My XDoclet look like this:
Code:
/**
* @return Returns the properties.
* @hibernate.map
* lazy="true" cascade="delete"
* @hibernate.map-key
* column="name" type="string"
* @hibernare.key
* column="moduleConfigId"
* type="com.mapping.IdHibernateType"
* @hibernate.one-to-many
* class="com.config.ConfigPropertyBO"
*/
public Map getProperties() {
return m_properties;
}
Somehow the mapping xml 'key' and 'map-key' are missing some attributes:
Code:
<hibernate-mapping>
<class table="ModuleConfig" name="com.config.ModuleConfigBO">
<id unsaved-value="0" name="id" type="com.mapping.IdHibernateType" column="Id">
<generator class="com.mapping.IdGenerator"/>
</id>
<version unsaved-value="undefined" name="version"/>
<property name="name"/>
<map cascade="delete" lazy="true" name="properties">
<key/>
<map-key/>
<one-to-many class="com.config.ConfigPropertyBO"/>
</map>
<property name="hidden"/>
</class>
</hibernate-mapping>
Hibernate version: 3.0
What am I doing wrong?
Very strange. It should work. At least tests from repository are passed for
/**
* @hibernate.map
* @hibernate.key column="userName"
* @hibernate.map-key column="attributeName" type="string"
* @hibernate.element column="attributeValue" type="serializable" not-null="true"
*/
Anyway lets move our conversation to project maillist
http://sourceforge.net/mail/?group_id=88133