hi,
i am a newbie to castor.
my problem is:
i want to have a one-many-relation i one table. the insert into the table
is successful but the select returns a vector with null entries.
in the mailinglist-archive i read that the actual cvs would resolve my
problem, but the compilation fails.
here is my mapping.xml:
<!DOCTYPE databases PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
"http://castor.exolab.org/mapping.dtd">
<mapping>
<class name="de.terminator.lg.LgTerminvorschlag"
identity="terminid" key-generator="MAX">
<map-to table="termin" xml="terminvorschlag" />
<field name="terminid" type="java.lang.Integer" >
<sql name="termin_id" type="integer"/>
<xml name="termin_id" node="element"/>
</field>
(...)
<field name="termine" type="de.terminator.lg.LgTermin"
required="true"
collection="vector">
<sql many-key="to_parent_termin" />
<xml name="termine" node="element" />
</field>
</class>
<class name="de.terminator.lg.LgTermin"
identity="terminid" key-generator="MAX">
<map-to table="termin" xml="termin" />
<field name="terminid" type="java.lang.Integer" >
<sql name="termin_id" type="integer"/>
<xml node="attribute"/>
</field>
(...)
<field name="parenttermin" type="de.terminator.lg.LgTerminvorschlag"
required="true">
<sql name="to_parent_termin"/>
<xml name="parenttermin" node="element" />
</field>
</class>
(...)
</mapping>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev