Hi,

I've problems with key generator, I have two classes :

<class  name="aspdmi.exchange.classes.general.CodeValue"
identity="code_value_id" key-generator="UUID">
      <cache-type  type="count-limited" capacity="1000"/>
      <map-to table="CodeValue"/>
      <field  name="code_value_id" type="string">
         <sql  name="code_value_id" type="varchar" dirty="ignore"/>
      </field>
      <field  name="icsi" type="string">
         <sql  name="icsi" type="varchar" dirty="ignore"/>
      </field>
 </class>

<class  name="aspdmi.exchange.classes.SubClasses.Address"
identity="subclass_id" key-generator="UUID">
      <cache-type  type="count-limited" capacity="1000"/>
      <map-to table="Address"/>
      <field  name="subclass_id" type="string">
         <sql  name="subclass_id" type="varchar" dirty="ignore"/>
      </field>
      <field  name="country"
type="aspdmi.exchange.classes.general.CodeValue">
         <sql  name="code_value_id" dirty="ignore"/>
      </field>
 </class>


and if I do this:

CodeValue cv = new CodeValue();
Address address = new Address();
address.setCountry(cv);
databaseManager.createObject(address);

in my database the field code_value_id for the table Address is null.
(if I delete the key generator, that's OK)

it is known bug? is there a workaround for this? (i'm using the version
0.9.3).

Thanks, cedric.

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

Reply via email to