I'm trying to figure out why a simple one-to-one table relation isn't
getting updated in the Postgres database.  I've got the following mapping
files:

<key-generator name="SEQUENCE">
  <param name="sequence" value="{0}_{1}_seq"/>
</key-generator>

<class name="com.scenicsoft.payday.datamodel.Project" identity="id">
    <map-to table="project" xml="Project"/>
    <field name="id" type="string">
         <sql name="id" type="varchar"/>
    </field>
...
    <field name="pageDimension"
type="com.scenicsoft.payday.datamodel.DimensionType">
       <sql name="id_pagedim"/>
    </field>
</class>


<class name="com.scenicsoft.payday.datamodel.DimensionType" 
        identity="id" key-generator="seqgen">
    <map-to table="dimension"/>
    <field name="id" type="long">
        <sql name="id" type="bigint" required="true"/>
    </field>
</class>


My understanding from the examples is that when class Project is persisted
through JDO.create(),  both the project and dimension SQL tables will have
rows inserted, with project's id_pagedim value matching the generated id
value in the dimension table . 

The problem is that the dimension table does not get a row  inserted when
Project is stored, and neither does the inserted project table row have an
id_pageDim value. I get no errors from the JDO logger, so what is it I'm
doing wrong?




I'm using version 0.9.3.9+  (CVS snapshot of  5/12/2002).

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to