cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Cayenne pattern quesiton
Date Wed, 31 Mar 2010 07:02:45 GMT
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  


On Mar 30, 2010, at 11:51 PM, 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

View raw message