Re: More on Callbacks!

From: Mike Kienenberger (mkienen..mail.com)
Date: Wed Oct 17 2007 - 11:07:20 EDT

  • Next message: Mike Kienenberger: "Memory leak of Configuration under Java 1.4, also EventManager"

    What about making it an "optional" JPA-style callback?

    Maybe it can make it into the next JPA spec if it becomes popular :-)

    On 10/17/07, Andrus Adamchik <andru..bjectstyle.org> wrote:
    >
    > On Oct 17, 2007, at 12:44 PM, Martin Thelian wrote:
    >
    > > Hi!
    > >
    > > Andrus Adamchik schrieb:
    > >> We followed JPA spec and implemented PRE_PERSIST to be called when a
    > >> new object is registered with the context (i.e. prior to
    > >> 'commitChanges'). So you you are right - there is no callback for the
    > >> new objects right before 'commit'.
    > >> [...]
    > >> Also as a temporary workaround you can use the old "callback"
    > >> CayenneDataObject.validateForInsert()
    > > Why do you call this function an "old" callback? Are there any
    > > plans to
    > > remove it from a new release?
    > >
    > > Martin
    >
    > No, no plans to remove that. I think current refactoring of those
    > methods into a separate interface called Validating (effectively
    > making it optional for POJOs) is as far as we will go in 3.0.
    >
    > Andrus
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Oct 17 2007 - 11:11:24 EDT