Re: Cayenne pattern quesiton

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Mar 31 2010 - 03:02:45 EDT

  • Next message: Andrus Adamchik: "Re: Cayenne pattern quesiton"

    I am using a form of DAOs (with injection) with the main reason being
    that I can provide alternative implementations in a context-sensitive
    manner without changing the DAO interface (something that can't be
    done with the static methods), which is very handy in numerous
    situations.

    Andrus

    On Mar 30, 2010, at 11:51 PM, MGargan..scholar.com wrote:
    > When using Cayenne are DAO's still the pattern used for findAll,
    > findByProperty, and findById query methods or is there some better
    > way to
    > do this in Cayenne? For example in the pet store project I see DAO's
    > being implemented, but I know that example was taken from other
    > projects
    > that use DAO's to begin with so I'm not sure if it was just
    > retrofitted to
    > use DAO's with Cayenne. I tried to look at some other examples from
    > the
    > website, but most of those are either not complex enough to warrant
    > that
    > kind of structure or the links are dead. I hope this is clear. :)
    > Also
    > if DAO's are the recommended pattern to use is there a tool (i.e.
    > eclipse
    > plugin) that will generate them?
    >
    > Thanks.
    > -Mike



    This archive was generated by hypermail 2.0.0 : Wed Mar 31 2010 - 03:03:32 EDT