cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Karich <peat...@yahoo.de>
Subject Re: Temporary Objects
Date Tue, 27 Mar 2007 20:05:11 GMT
> I'm missing something.  I don't understand why you don't do something
> along these lines.
> 
> nonpersistentObject.setObjectId(new Timestamp());

Yes! I was trapped in my idea that a pk has to be integer :-(
Thank you!

> You don't have to use the same kinds of object ids for your
> non-persistent objects, and using a different type will guarantee that
> a persistent and non-persistent object will never be equal to each
> other.

And what about the NullPointerException I mentioned in the first email?

Peter.

		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

Mime
View raw message