我有一个这样的集合:
<collectiontype code="colors" elementtype="localized:java.lang.String">
以及包含此集合的 itemtype:
<itemtype code="MyShirt" autocreate="true" generate="true">
<attributes>
<attribute qualifier="code" type="java.lang.String">
<persistence type="property">
</attribute>
<attribute qualifier="colors" type="colors">
<persistence type="property">
</attribute>
</attributes>
</itemtype>
那么在这个 itemtype 中插入衬衫的正确 ImpEx 应该是什么:
$lang=en
INSERT_UPDATE MyShirt;code[unique=true];colors(code[lang=$lang])
上面的语句给出了错误。我哪里出错了?