Re: Tapestry + relationship-backed form components

From: shaun (wojing..astmail.com.au)
Date: Wed Jul 14 2004 - 21:03:56 EDT

  • Next message: Andrus Adamchik: "Re: Newbie question on Cayenne error at runtime"

    Hi,

    On Wed, 14 Jul 2004 11:21:04 -0400, "Andrus Adamchik"
    <andru..bjectstyle.org> said:
    > You can do this in Cayenne, it'll work. There is a "localObjects()"
    > method on a DataContext. Still this approach seems wasteful in both EOF
    > and Cayenne, as *Context is optimized for use as a local object cache.
    >
    > (OT: bbum made a big point of how slow this is in EOF during a WO
    > performance optimization session at WWDC this year).
    >
    > Andrus

    I wish I could have been at WWDC to see that.

    One thing I should point out(incase it wasnt clear from my post) and I
    would like
    a comment on.

    When I have a work flow I pass the editing context along to the next
    component
    so the objects are fetched into that editing context.
    Its only the objects that may already exist in the session
    editingContext that are pulled into
    the page flow editing context, eg) session.loggedInUser.

    Was this described as a performance problem?
    I didnt think a trip to the database was made for a call to
    localInstanceOfObject,
    I thought the objectStoreCoordinator just used created an instance in
    the context.

    Do you know if there is anywhere I can see the session slides for bbum's
    talk?
    I would really like to read more about this.

    cheers
    -
    shaun

    >
    >
    > On Jul 14, 2004, at 10:45 AM, wojingo wrote:
    > > Hi,
    > >
    > > I have been lurking on the list for awhile and havent actually coded
    > > anything using Cayenne yet, so forgive my ignorance. :)
    > >
    > > The approach I have used sucessfully in WO is to have an EditingContext
    > > per WOComponent this means that I usually fetch the objects the page
    > > needs into its editing context. When I have objects in different
    > > editing
    > > contexts that I need to use in a relation I used the localInstance of
    > > object method to pull the object into the relevant editing context.
    > >
    > > Can I use the same approach in Cayenne?
    > > Is there an equivalent method of localInstance of object?
    > >
    > > I guess its time for me to dive in and actually write something using
    > > Cayenne!
    > >
    > > regards
    > > -
    > > shaun
    >



    This archive was generated by hypermail 2.0.0 : Wed Jul 14 2004 - 21:04:00 EDT