I have the following model:
HardDisk 1 ------------* Sector 1 ------------- * Cell
1) mapping
HardDisk 1 --------------- * Sector
using this :
<class name="Sector" depends="HardDisk">
<field name="hardDisk" type="HardDisk">
<sql name="hardDisk_Id"/>
</field>
</class>
<class name="Cell" depends="Sector">
<field name="hardDisk" type="HardDisk">
<sql name="sector_Id"/>
</field>
</class>
works.
2) mapping
Sector 1 --------------- * Cell
works using a similar mapping.
3) While trying to mapp
HardDisk 1 ------------* Sector 1 ------------- * Cell
all together I get this exception:
org.exolab.castor.mapping.MappingException: Depends not
[EMAIL PROTECTED] Cell
The mapping file looks like this (simple):
<class name="HardDisk" >
</class>
<class name="Sector" depends="HardDisk">
<field name="hardDisk" type="HardDisk">
<sql name="hardDisk_Id"/>
</field>
</class>
<class name="Cell" depends="Sector">
<field name="hardDisk" type="HardDisk">
<sql name="sector_Id"/>
</field>
</class>
Does castor provide dependency recursion? I tryed to look at some
mapping files of some open source code project using castor but none
of them uses such a hierarchical structure
despite of the fact that this is a very used model!
I use castor-0.9.6-RC3.jar
cheers!
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user