Re: Temporary Objects

From: Peter Karich (peatha..ahoo.de)
Date: Tue Mar 27 2007 - 16:05:11 EDT

  • Next message: Mike Kienenberger: "Re: Temporary Objects"

    > 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



    This archive was generated by hypermail 2.0.0 : Tue Mar 27 2007 - 16:05:46 EDT