Hi all!
I have two classes CzescAtomowa and CzescZlozona.
Between theese classes there are 2 relations :
<class-descriptor class="com.bimki.oo7j.ojb.om.CzescZlozona"
table="CzescZlozona">
<field-descriptor name="id" column="czz_id" jdbc-type="INTEGER"
primarykey="true" autoincrement="true"/>
<!-- relacja 1:m z czescia atomowa -->
<collection-descriptor name="czesciAtomowe" auto-update="object"
element-class-ref="com.bimki.oo7j.ojb.om.CzescAtomowa">
<inverse-foreignkey field-ref="czescZlozona_id" />
</collection-descriptor>
<!-- relacja 1:1 z czescia atomowa -->
<field-descriptor column="czz_glAtid" name="glownaAtomowa_id"
jdbc-type="INTEGER"></field-descriptor>
<reference-descriptor name="glownaAtomowa" auto-update="object"
class-ref="com.bimki.oo7j.ojb.om.CzescAtomowa">
<foreignkey field-ref="glownaAtomowa_id" />
</reference-descriptor>
......
==================
<class-descriptor class="com.bimki.oo7j.ojb.om.CzescAtomowa"
table="CzescAtomowa">
<field-descriptor name="id" column="cza_id" jdbc-type="INTEGER"
primarykey="true" autoincrement="true" />
<!-- relacja 1:m z czescia zlozona -->
<field-descriptor column="cza_czId" name="czescZlozona_id"
jdbc-type="INTEGER"></field-descriptor>
....
saving CzescZlozona object with :
1)
- not empty czesciAtomowe collection (1:n relation)
- empty glownaAtomowa (1:1) realtion
everythings in database looks fine
2)
- empty czesciAtomowe collection (1:n relation)
- not empty glownaAtomowa (1:1) realtion
everythings in database looks fine
3) but with :
- not empty czesciAtomowe collection (1:n relation)
- not empty glownaAtomowa (1:1) realtion
everythings I always got null values in database :(
czz_glAtid or cza_czId columns are null depending on saving order (but
everthing in one transaction)
am I doing something wrong or is it a known bug?
Thanks for any help.
Greetings, Bimki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]