Hi,
I'm trying to use the index-many-to-many tag in xdoclet. Hibernate generates the hbm.xml from java just fine, but when I attempt to run the <schemaexport> ant task, I get the following error:
[schemaexport] ...(stack)...
[schemaexport] Caused by: org.xml.sax.SAXParseException: Attribute "type" must be declared for element type "index-many-to-many".
[schemaexport] ...(stack)...
I looked in the dtd and there is no mention of the "type" attribute for index-many-to-many.
Then, I looked in my generated hbm.xml file and saw the following: (!)
<map
...
>
<key
...
/>
<index-many-to-many
class="(my fully qualified class)"
type="user_id"
/>
<many-to-many
class="(class)"
column="channel_id"
outer-join="auto"
/>
</map>
note the presence of the "type" attribute that <schemaexport> is claiming is missing, in the place of what I expected to be a "column" attribute.
any idea what's going on here?
I'm using hibernate 2.1, xdoclet 1.2 (final)
thanks in advance
Justin
|