Re: Cayenne vs EOF: How to questions?

From: Dov Rosenberg (dov.rosenber..onviveon.com)
Date: Fri Feb 11 2005 - 09:00:25 EST

  • Next message: Mike Kienenberger: "Re: testing two DataObjects for equality"

    I am betting a lot of people would benefit from the jump start classes you
    have constructed. Maybe there is some way to include those in Cayenne?

    I would definitely be interested in getting a copy.

    Thanks in advance

    -- 
    Dov Rosenberg
    Conviveon Corporation
    http://www.conviveon.com
    

    On 2/10/05 11:55 PM, "David Burnett" <dav..csf.com> wrote:

    > It's not really that bad, just tedious. I wound up writing a bunch of > cover methods on various Cayenne calls to make them more like EOF > syntax, to allow for reuse of our existing try/catch handlers, etc. > Also a lot of hassles with having to move away from Apple's collection > classes. I had to write a bunch of covers there, too. > > If you wind up really going down the Cayenne path I can send along some > of the utility classes we have, such as they are. It's not amazing > code, but it will save you a week's worth of work and some headaches. > > Dave > > > On Feb 10, 2005, at 8:48 PM, Dov Rosenberg wrote: > >> We have a large application as well. Our model is close to 100 tables. >> Lots >> of code would be affected. >> >> :( >> >> >> On 2/10/05 11:07 PM, "David Burnett" <dav..csf.com> wrote: >> >>> What we encountered when we imported our model was that attributes >>> inherited from a prototype would be left blank. We modified this >>> behavior to pull the data from the EOJDBCPrototypes EO in the >>> .eomodeld >>> during import. We gave that code back to Andrus for inclusion into >>> the >>> mainline but I do not know if he did that yet or not. >>> >>> We have 100 or so tables in our eomodeld file and a large number of >>> apps that access that. Our conversion time is long - several >>> man-months. It's further complicated by the fact it's hard to take >>> our >>> production systems offline for any length of time or even slow the >>> pace >>> of new feature development. >>> >>> Dave >>> >>> On Feb 10, 2005, at 7:40 PM, Dov Rosenberg wrote: >>> >>>> I would be very interested in hearing details of how your project >>>> works out. >>>> Please keep me posted. I have been able to import our EOModels into >>>> Cayenne >>>> although since we use prototypes I have to go back thru and change >>>> everything. Haven't tried generating any code yet. >>>> >>>> How long has it taken/will take to complete the conversion from EOF >>>> to >>>> cayenne? >>>> >>>> Thanks in advance >>>> >>>> >>>> -- >>>> Dov Rosenberg >>>> Conviveon Corporation >>>> http://www.conviveon.com >>>> >>>> >>>> >>>> >>>> On 2/10/05 8:13 PM, "David Burnett" <dav..csf.com> wrote: >>>> >>>>> Dov, >>>>> >>>>> We've been working on a major EOF to Cayenne conversion for one of >>>>> our >>>>> clients. When we're done we've been planning to post the internal >>>>> how-to guide that we've been working on, along with various bits of >>>>> library code that help with doing a major EOF to cayenne port. >>>>> We've >>>>> also written our own XML parser that removes dependencies on WO's >>>>> decoder/encoder API. >>>>> >>>>> BTW, we've put a couple months of engineering time into Cayenne >>>>> itself >>>>> to deal with some ways/areas that it couldn't import our EO Model - >>>>> basically adding the ability to understand prototypes and to >>>>> correctly >>>>> import stored fetchspec query parameters. We almost went down the >>>>> road >>>>> of completely implementing prototypes within Cayenne but it was >>>>> going >>>>> to put us too far out of scope. >>>>> >>>>> We've been planning on having our WO apps access Cayenne for some >>>>> period of time prior to shifting some of them to Tapestry. >>>>> >>>>> Would be happy to let you pick my brain in more detail if you're >>>>> serious about going in this direction. Is it doable? Yes. Is it >>>>> pain-free? Definitely not. >>>>> >>>>> Regards, >>>>> >>>>> Dave >>>>> >>>>> On Feb 10, 2005, at 4:52 PM, Dov Rosenberg wrote: >>>>> >>>>>> That is good to hear. How dramatic of a change is it to move from >>>>>> EOF >>>>>> to Cayenne? Are you using Tapestry as well? Have you come across >>>>>> anything that has given you pause about Cayenne? >>>>>> >>>>>> Thanks in advance >>>>>> >>>>>> >>>>>> -- >>>>>> Dov Rosenberg >>>>>> Conviveon Corporation >>>>>> http://www.conviveon.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 2/10/05 6:37 PM, "Bryan Lewis" <brya..aine.rr.com> wrote: >>>>>> >>>>>> >>>>>> On the first question, I'm currently converting several old apps >>>>>> from >>>>>> WebObjects 4.5 to Cayenne and have had no trouble keeping our old >>>>>> flattened relationships.  See the user's guide: >>>>>> >>>>>> http://objectstyle.org/cayenne/modelerguide/modeling-object-layer/ >>>>>> flattenedrel.html >>>>>> >>>>>>   >>>>>> >>>>>> >>>>>> ----- Original Message ----- >>>>>>   >>>>>> From:  Dov Rosenberg <mailto:dov.rosenber..onviveon.com>   >>>>>>   >>>>>> To: cayenne-use..bjectstyle.org   >>>>>>   >>>>>> Sent: Thursday, February 10, 2005 5:52  PM >>>>>>   >>>>>> Subject: Cayenne vs EOF: How to  questions? >>>>>>   >>>>>> >>>>>> A few questions on the capabilities of Cayenne as  compared to >>>>>> Apple >>>>>> EOF >>>>>> >>>>>>   >>>>>> >>>>>> 1. Does Cayenne support flattened relationships like  EOF? If so, >>>>>> what is the equivalent?   >>>>>> 2. I  understand that Cayenne does not currently support >>>>>> EOPrototypes to make it  easier to switch between databases, what >>>>>> is >>>>>> the Cayenne preferred method for  supporting multiple databases? >>>>>> Seems >>>>>> like it has something to do with  DataMaps. Not sure though   >>>>>> 3. How  can I programmatically swap out my connection dictionary >>>>>> at application  startup? I.e. Allow me to store userid/password in >>>>>> separate file from the  cayenne.xml and update them when the app >>>>>> starts up.   >>>>>> 4. Is  there a hook for generating primary keys on the client >>>>>> side >>>>>> similar to what  we currently do with a DatabaseContextDelegate and >>>>>> our own guid generator?    >>>>>> 5. Is  there any Cayenne support for doing lightweight, high >>>>>> volume SQL processing  (i.e. For batch updates)? EOF has too much >>>>>> overhead for large amounts of sql  processing in batch mode. >>>>>> Ideally >>>>>> a >>>>>> smarter version of RawRowsForSQL that  doesnıt create all the >>>>>> objects >>>>>> in an object  graph. >>>>>> >>>>>> >>>>>> Thanks in advance. >>>>>> >>>>>> >>>>>> >>>>>> >>>>> ---------------------------------------------------- >>>>> David Burnett - Partner >>>>> Quetzal Consulting, Inc. >>>>> >>>>> (650) 827-3969 >>>>> >>>>> 440 Northwood Drive >>>>> South San Francisco, CA 94080 >>>>> ---------------------------------------------------- >>>>> >>>> >>>> >>>> >>>> >>> ---------------------------------------------------- >>> David Burnett - Partner >>> Quetzal Consulting, Inc. >>> >>> (650) 827-3969 >>> >>> 440 Northwood Drive >>> South San Francisco, CA 94080 >>> ---------------------------------------------------- >>> >> >> >> >> > ---------------------------------------------------- > David Burnett - Partner > Quetzal Consulting, Inc. > > (650) 827-3969 > > 440 Northwood Drive > South San Francisco, CA 94080 > ---------------------------------------------------- >



    This archive was generated by hypermail 2.0.0 : Fri Feb 11 2005 - 09:00:30 EST