Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 32428 invoked from network); 14 Sep 2007 20:17:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Sep 2007 20:17:08 -0000 Received: (qmail 59665 invoked by uid 500); 14 Sep 2007 20:16:54 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 59608 invoked by uid 500); 14 Sep 2007 20:16:54 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 59572 invoked by uid 99); 14 Sep 2007 20:16:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2007 13:16:54 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [64.61.35.66] (HELO servprise.com) (64.61.35.66) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2007 20:16:52 +0000 Received: from 192.168.50.21 ([192.168.50.21]) by aristotle.servprise.office ([192.168.100.3]) with Microsoft Exchange Server HTTP-DAV ; Fri, 14 Sep 2007 20:16:24 +0000 User-Agent: Microsoft-Entourage/11.3.6.070618 Date: Fri, 14 Sep 2007 16:16:29 -0400 Subject: Re: Basic ROP questions From: Kevin Menard To: Message-ID: Thread-Topic: Basic ROP questions Thread-Index: Acf28hDvT1V9sWLlEdyDrgAbY5TfYwAGhFWK In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Answering my first question . . . That's a definite no. The parent class implementations are quite different. So, I may just have to break down and create utility classes that accept DOs as arguments. A bit of pain, but it'll reduce the code duplication. -- Kevin On 9/14/07 1:09 PM, "Kevin Menard" wrote: > I'm just getting started on a ROP project using Cayenne 3.0. In my server > classes, I had a large amount of utility methods attached to my DOs. > Clearly, there's a fair amount of overlap between the server classes and the > client classes. > > A couple brief questions then follow: > > 1) Will modifying the Velocity template to subclass the servers classes help > reduce the code duplication? Will this even work? > > 2) Will packaging either the server or the client classes into distributable > JARs gain me anything? > > I'll try these out on my own anyway, but before I got too bogged down with > that, I just wanted to see what's doable and what's not. I haven't looked > into the finer details of relationships between the server and client > classes. > > Thanks, > Kevin > --