Hey guys!
I have a problem with my hibernate config for a list:
it says I don't use the right child elements for the <list> xml
element.
...but i can't see anything wrong.
It's surely my fault, but could someone still point
me in the right direction?
Thanks a lot!
----
Hibernate version:
3.0.5
Mapping documents:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="net.bitalchemy.omnitheca.model.catalog">
<class name="CatalogModel" table="catalogmodels">
<id name="id" column="CATALOGMODEL_ID">
<generator class="increment"/>
</id>
<property name="name"/>
<property name="comment"/>
<list name="fields">
<list-index column="field_index"/>
<key column="CATALOGMODEL_ID"/>
<one-to-many class="Field"/>
</list>
</class>
</hibernate-mapping>
Full stack trace of any exception that occurs:
INFO - Hibernate 3.0.5
INFO - hibernate.properties not found
INFO - using CGLIB reflection optimizer
INFO - using JDK 1.4 java.sql.Timestamp handling
INFO - Mapping resource: net/bitalchemy/omnitheca/model/catalog/CatalogModel.hbm.xml
ERROR - Error parsing XML: XML InputStream(20) The content of element type "list" must match "(meta*,subselect?,cache?,synchronize*,comment?,key,(index|list-index),(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)".
Exception occurred during event dispatching:
org.hibernate.MappingException: Error reading resource: net/bitalchemy/omnitheca/model/catalog/CatalogModel.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:452)
......
|