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 Tue, 18 May 2004 19:20:38 GMT
Hi Joerg,

On Monday 17 May 2004 22:49, Joerg Heinicke wrote:
> the test !newAddresses.contains(oldAddress) always returns false. OJB
> handles it internally so that no db access will be done if not
> necessary, i.e. if the "same" elements (in OJB sense, but different in
> Java sense) will be readded in the same tx.
>
> But the behaviour is a bit strange. Is this by
> intention/design/implementation?
All of the above :)
Very simple: object identity uniquely identifies the object. 
AFAIK Sun JDO spec also treats object identity in similar way,
which differs from the way of standard Java APIs.

Regards,
  Oleg


---------------------------------------------------------------------
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