Hibernate version: 3.1.2
First post here, so please tell me if i'm not tuned in to the forum's culture..
(and english isn't my first language, so glaring grammatical errors are possible)
my problem is: i'm trying to generate a class with a "List" element, but keep
getting error messages from the IDE i use (jboss 1.5, eclipse 3.1.1):
code:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 12:56:49 19/02/2006 by Hibernate Tools 3.1.0.beta4 -->
<hibernate-mapping>
<class name="HiberGenesis.hib.ConnectionHib" table="connection" >
<id name="id" type="integer">
<column name="ID" />
<generator class="native" />
</id>
<many-to-one name="itemFrom" class="HiberGenesis.hib.ItemHib" fetch="select">
<column name="ITEM_FROM" not-null="true" />
</many-to-one>
<list name="connectionPropertyList" inverse="true">
<key column="CONNECTION_ID" not-null="true"/>
<one-to-many class="HiberGenesis.hib.ConnectionPropertyHib" />
</list>
</class>
</hibernate-mapping>
i've created this code using a reference from the internet:
http://www.nabble.com/Re:-Weird-1-to-n- ... c2369.htmli've also tried the following variation:
Code:
<list name="connectionProperties" inverse="true">
<key>
<column name="BC_CONNECTION_ID" not-null="true" />
</key>
<one-to-many class="HiberGenesis.hib.hib.ConnectionPropertyHib" />
</list>
the error message i'm getting:
Quote:
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*)".
i've tried to find a solution to this problem on the internet, as well as
fiddling with the xml for a while, but couldn't find a solution (it seems that it should work, but it doesn't )