Hi, Gunnar,
Are you using ODMG or OTM?
Is it fresh CVS version of OJB or one of the releases? Which one?
Oleg
On Tuesday 04 November 2003 00:20, Gunnar Hilling wrote:
> Hello!
> I got the following code:
>
> for (int i = 0; i < 10; i++) {
> Zertifikat zertifikat = new Zertifikat();
> tree.addZertifikat(zertifikat);
> Iterator iter=tipps.iterator();
> while(iter.hasNext()){
> AbstractTipp tipp=(AbstractTipp)iter.next();
> new Reservierung(new Date(), new Date(), "<ops/>", zertifikat,
> tipp); }
> tx.checkpoint(); //!!
> }
> tx.commit();
>
> Relations are: tree 1 <-> n zertifikat 1 <-> m reservierung n <-> 1 tipp
>
> All Relations are navigatable in both directions, using non-nullable
> foreign key constraints. I encounter the problem that I have to use the
> "tx.checkpoint;" line in my code or I will run into a foreign key
> constraint failure ("key referenced from reservierung not found in
> zertifikat"). Is this behaviour correct? It doesn't seem so to me, but
> perhaps I'm getting something wrong?
>
> Any Help greatly appreciated (urgent)
>
> Thanks
>
> -Gunnar
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]