Anybody see anything wrong with this mapping?
Code:
<hibernate-mapping>
<class name="org.appfuse.model.Category" table="CATEGORY">
<id name="id" type="long" column="CATEGORY_ID">
<generator class="increment"/>
</id>
<property name="name" type="string" column="CATEGORY_NAME"/>
<set name="parents" table="CATEGORY_PARENTS">
<key column="CATEGORY_ID"/>
<many-to-one class="org.appfuse.mode.Category" column="PARENT_ID"/>
</set>
</class>
</hibernate-mapping>
I'm getting this error:
Code:
ERROR - XMLHelper$ErrorLogger.error(48) | Error parsing XML: XML InputStream(14) Attribute "name" is required and must be specified for element type "many-to-one".
ERROR - XMLHelper$ErrorLogger.error(48) | Error parsing XML: XML InputStream(15) The content of element type "set" must match "(meta*,(cache|jcs-cache)?,key,(element|one-to-many|many-to-many|composite-element|many-to-any))".