Hi,
I have th following in one hbm.xml file:
<?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 default-lazy="false">
<class name="com.ameraust.investor.option.strategy.OptionPosition" table="option_position">
<id name="id" type="int" column="id">
<generator class="increment"/>
</id>
....
<array name="initialCallOptionTradings" cascade="all">
<key column="option_position_id"/>
<one-to-many class="com.ameraust.investor.object.OptionTrading"/>
</array>
......
When running, I got the following error:
Caused by: org.xml.sax.SAXParseException: The content of element type "array" 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?)".
What's wrong here?
Thanks,
|