I concur with Mike.  Putting the business logic in the Cayenne Data Object
subclass works pretty well.  I also use the same approach with EOF.  The
idea of having a transfer object just feels unclean to me and unneeded.

On Thu, Jul 23, 2009 at 1:28 PM, Mike Kienenberger <[email protected]>wrote:

> I don't know of anyone using Cayenne with Transfer Objects to business
> objects.   I tried writing a couple of projects like that, but my
> experience was that it's not a useful way to design applications since
> my business objects were practically identical to my Cayenne objects.
>  I found that making the Cayenne objects conform to a business
> interface worked much better for my projects, which avoided the
> overhead of transferring state between objects.
>

Reply via email to