HI,
ok i want to change to a map, but i have some hibernate mapping problems.
the mapping i tried is this:
Code:
<class name="Page" table="pages">
<id name="id" column="id" unsaved-value="-1">
<generator class="identity"/>
</id>
<property name="name" column="name"/>
<map name="htmlsInternal" table="page_htmls">
<key column="page_id"/>
<index-many-to-many column="html_id" class="Html"/>
<element column="htmls" type="string"/>
</map>
</class>
<class name="Html" table="htmls">
<id name="id" column="id" unsaved-value="-1">
<generator class="identity"/>
</id>
<property name="name" column="name"/>
<property name="code" column="code"/>
<property name="datetime" column="datetime"/>
<property name="active" column="active"/>
<property name="lang" column="lang"/>
</class>
but with this i get the following error:
Code:
javax.servlet.jsp.JspTagException: javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "test" with value "${command.htmls[html]}": The "[]" operator was supplied with an index value of type "de.starline.cms.content.Html" to be applied to a List or array, but that value cannot be converted to an integer. (null) at org.apache.taglibs.standard.tag.el.core.IfTag.condition(IfTag.java:65) at javax.servlet.jsp.jstl.core.ConditionalTagSupport.doStartTag(ConditionalTagSupport.java:122) at
i seems that the taglibs doesnt' use the map keys
any idea ?
Thanks
mfg Gideon