This may have been discussed previously but I cannot find the solution...
Any suggestions or comments would be greatly appreciated!
I have built castor from CVS very recently, and am using PostgreSQL. This
behavior has been present for approximately 10 days...
In the following mapping file, class C is stored in the database, but the
reference to it in B is stored as 0 or " " (blank). The only solution I've
found is to call update(c) just before calling commit in any transaction
that modifies C, which causes separate problems. I've tried making C depend
on B but that does not change the behavior. Castor is being used directly in
Servlets running under the Orion Servlet Engine.
THANK YOU
<class name="A" identity="ID" key-generator="SEQUENCE" access="shared">
<cache-type type="count-limited" size="10000"/>
<description>A</description>
<map-to table="A" xml="Visitor"/>
<field name="ID" type="integer">
<sql name="ID" type="integer"/>
<xml node="attribute"/>
</field>
<field name="Created" type="date">
<sql name="Created" type="timestamp"/>
<xml name="Created" node="element"/>
</field>
<field name="Updated" type="date">
<sql name="Updated" type="timestamp"/>
<xml name="Updated" node="element"/>
</field>
<field name="B" type="B" collection="vector" required="false">
<sql many-key="BID" />
<xml name="B" node="element" />
</field>
</class>
<class name="B" identity="ID" key-generator="SEQUENCE" access="shared">
<cache-type type="count-limited"/>
<description>B</description>
<map-to table="B" xml="B"/>
<field name="ID" type="integer">
<sql name="ID" type="integer"/>
<xml node="attribute"/>
</field>
...
<field name="Created" type="date">
<sql name="Created" type="timestamp"/>
<xml name="Created" node="element"/>
</field>
<field name="Updated" type="date">
<sql name="Updated" type="timestamp"/>
<xml name="Updated" node="element"/>
</field>
<field name="C" type="C">
<sql name="C" />
<xml name="C" node="element" />
</field>
</class>
<class name="C" identity="ID" auto-complete="true" key-generator="SEQUENCE"
access="shared">
<cache-type type="count-limited"/>
<description>C</description>
<map-to table="C" xml="C"/>
<field name="ID" type="integer">
<sql name="ID" type="integer"/>
<xml node="attribute"/>
</field>
<field name="Created" type="date">
<sql name="Created" type="timestamp"/>
<xml name="Created" node="element"/>
</field>
<field name="Updated" type="date">
<sql name="Updated" type="timestamp"/>
<xml name="Updated" node="element"/>
</field>
...
</class>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev