Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00CA01867A for ; Mon, 8 Jun 2015 13:58:47 +0000 (UTC) Received: (qmail 67572 invoked by uid 500); 8 Jun 2015 13:58:46 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 67543 invoked by uid 500); 8 Jun 2015 13:58:46 -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 67531 invoked by uid 99); 8 Jun 2015 13:58:46 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jun 2015 13:58:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 25E0E1A4862 for ; Mon, 8 Jun 2015 13:58:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 63VP95G4Jcq3 for ; Mon, 8 Jun 2015 13:58:45 +0000 (UTC) Received: from mail-qg0-f45.google.com (mail-qg0-f45.google.com [209.85.192.45]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id D7FC8253EF for ; Mon, 8 Jun 2015 13:58:44 +0000 (UTC) Received: by qgfa66 with SMTP id a66so13675049qgf.0 for ; Mon, 08 Jun 2015 06:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=hz2CHQqRaexnwUfOgnCJG4g7gQiZ6+onZI+Ujdp5R7c=; b=hoO4g+H+i6PRDl9A09Wff/IwsqoAI0X+WKYV3iXL4CCbTNHuN41ifpDaHFSeg0EtDY qGRadyY+Ix5TpI0+YtsNXTf28eF9ctYwYUGIw9Bl8duEToDv9tCgdHEmplTnqIeKOsay +n00gnar7ORdVGejzpIBOPFsUKMNZEFHGk2nY0DhOOj+0Dw/6smgS7H9tVYdkwmsjAsy v5ItY9w13lq4N9RbJZq43Y6P7L9DBRk+SwaHkaAYamUP4Ayk2a6L5DbtRT0HvIw6Ztz9 ZRps965WIV6Ac3rAlEYjBCWtR8ZLILbgRrZ7x9eMgkqhwCBUF2EhXaS2Wo0FdLf/TaPJ /VpQ== X-Received: by 10.140.148.72 with SMTP id 69mr20407428qhu.15.1433771878974; Mon, 08 Jun 2015 06:57:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.18.161 with HTTP; Mon, 8 Jun 2015 06:57:38 -0700 (PDT) In-Reply-To: <6BDAFC3C-E0EC-4E24-9FD0-EF29F1CACCA3@gmail.com> References: <6BDAFC3C-E0EC-4E24-9FD0-EF29F1CACCA3@gmail.com> From: Mike Kienenberger Date: Mon, 8 Jun 2015 09:57:38 -0400 Message-ID: Subject: Re: Cayenne design Patterns To: user@cayenne.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I tend to use a DAO pattern in projects where I want all cayenne references isolated to a specific package. I use the template generator to create 90%of the code and keep it up to date On Mon, Jun 8, 2015 at 9:48 AM, Gmail wrote: > > > I'm wondering how people on this mailing BG list structure their Cayenne = projects. The two most common design patterns I have seen are DAO style whe= re the code that implements access is in its own class and Active record st= yle where the Domain object implements the data access layer. > > Are most folks here using one of these two patterns or something else all= together? > > Tony Giaccone