> 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

Reply via email to