db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Nitz ...@ukr.net>
Subject Re: [OTM] bug with most simple use case - the story goes on :)
Date Sat, 15 May 2004 20:11:14 GMT
Hi Jeorg,

It's fixed. Insert after delete didn't change the state of object, so it was 
deleted.

Regards,
 Oleg

On Saturday 15 May 2004 01:44, Joerg Heinicke wrote:
> On 14.05.2004 00:30, Oleg Nitz wrote:
> > Hi Jeorg,
> >
> > Sorry for doing nothing about OTM problems last time, I'll try to start
> > doing more.
>
> No problem. I made it work for me doing the two iterations in two
> transactions, though this can obviously lead to data loss.
>
> I only found it strange that there was no reaction at all.
>
> >>BTW, did this test case made it into the CVS? I searched it, but could
> >> not find it.
> >
> > It's here: SwizzleTests.testSomethingSimple()
> > Can you give me the diff, please?
>
> Oh, don't know why I did not find it. The test diff is extremely easy.
>
> Joerg
>
>
> Index: SwizzleTests.java
> ===================================================================
> RCS file:
> /home/cvspublic/db-ojb/src/test/org/apache/ojb/otm/SwizzleTests.java,v
> retrieving revision 1.13
> diff -u -r1.13 SwizzleTests.java
> --- SwizzleTests.java	12 Apr 2004 16:32:42 -0000	1.13
> +++ SwizzleTests.java	14 May 2004 22:41:26 -0000
> @@ -475,6 +475,8 @@
>           addresses = this.updateAddresses(addresses);
>           addresses = this.getAddresses();
>
> +        assertEquals("Collection of addresses must be 1. ", 1,
> addresses.size());
> +
>           iter = addresses.iterator();
>           while (iter.hasNext()) {
>               Address address = (Address)iter.next();
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message