Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9BE0B200D1A for ; Mon, 9 Oct 2017 17:55:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9A3F41609CE; Mon, 9 Oct 2017 15:55:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DD2541609BB for ; Mon, 9 Oct 2017 17:55:40 +0200 (CEST) Received: (qmail 75776 invoked by uid 500); 9 Oct 2017 15:55:40 -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 75764 invoked by uid 99); 9 Oct 2017 15:55:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2017 15:55:39 +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 C48DD1A4F0D for ; Mon, 9 Oct 2017 15:55:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, 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-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GFloVEDyeKSi for ; Mon, 9 Oct 2017 15:55:36 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E99385FE64 for ; Mon, 9 Oct 2017 15:55:35 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id h200so13515993oib.4 for ; Mon, 09 Oct 2017 08:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=PQrDiod8zSdFvSwFaUvzm+VrSr71pbnVIDiduDzot10=; b=vXWT2QP3k5stvLhHYpmM6Zw7mV/O5AfsxZGlkil5LIhEXDfmhVxxhuSQr1Ie55qwEf m8P2JKv4dMNJ7dHsvbZM0R97yZ+yZiZiNgvQTveeUka049J5IP0dlhi2PdXrqbMf4/5s 92nJKePdRGv7rYW1s+l3+sHD/2YJO3M02FMkA9Ne7hB+vd2rnD4XZr8XivwKsZeVx9ua igpng1hXWl9biZJP9XpgF/ya/UMRsJveFslh6seWJeoDfgCy1F/zNjp9frNP+ujGOMn+ 0KPCvT6MiGI0jdR7EzAoNqjyeKe7tesL0hHWVYuDjabKfXK+gxjyCBpAqJ/wD/Ipa0RI vxag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=PQrDiod8zSdFvSwFaUvzm+VrSr71pbnVIDiduDzot10=; b=ZGdZWjWX4uPyrJ3JE9CLcaWcAYOdoLRmxTNJhHXe0SmSvCQh+z82PDEa6myoua4gqL TQICUBBOAhgHD6jAE/iwdG9gWIyl6Cch8fhLGiOlWbUccQhOWmnY6rf8aAJkPGTR2cCJ J2lZh6dOG8G5Q0GxAa8ed63+Bj+AdS40IjkWX/tSsZ2XrY8+elFSOPp5iXUc1Q51t5gS YsvvV1tSTuWP1nKkE2FG4xbrKFJUPmXhCZ7S51Zuy+q3BdMuND0lfF1C5367XZpr/dYT 1RdgWAgaHzt+V/LcZw6HVMVwducf3BJudSm2xKpqlRlI6E5NB2vQHRhZNpDV8ZFXzOlx qmNQ== X-Gm-Message-State: AMCzsaUm6V6Y2ZSKYiklwY7zEiT4ydn5DcQB5P7qqxbh8/ielVf/MxQt 5cFcFwAqaMUiaQEHpQlKJ3Ad7HvEGuUY7L9ic+NV7A== X-Google-Smtp-Source: AOwi7QCqKAMPR0DQZ+RwrJjPKIRsNcmMjC6Dn9RE0mpR4tGksV/AXp9mpqBi00+g2m1AN0yo+z7RA8mfiKImVxg/PeQ= X-Received: by 10.157.43.132 with SMTP id u4mr5844685ota.17.1507564534262; Mon, 09 Oct 2017 08:55:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.0.148 with HTTP; Mon, 9 Oct 2017 08:55:13 -0700 (PDT) In-Reply-To: <9746DB36-4EC6-4C0A-A9EC-0CD1CEB8763F@objectstyle.org> References: <91c954e0-dfd3-6318-b53b-bbcf14f3ae60@maniatis.org> <92DE92C5-DC8E-4A69-91A3-70ABE4A4241B@roxanemy.com> <9746DB36-4EC6-4C0A-A9EC-0CD1CEB8763F@objectstyle.org> From: Mike Kienenberger Date: Mon, 9 Oct 2017 11:55:13 -0400 Message-ID: Subject: Re: Cayenne advantages To: user@cayenne.apache.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable archived-at: Mon, 09 Oct 2017 15:55:41 -0000 Well, I'm still on Cayenne 3, but the number one thing for me is ObjectCont= ext. -- ObjectContext unit of work: Distinct scratch areas where a set of changes are proposed, but can be thrown away with no effort, or committed to the database if kept -- all without ongoing open active database connections. -- uniquing of database objects with object context Most of my work these days is required to be in JPA, and JPA fails to provide for the above. Other things I like: - - custom cgen templates On Mon, Oct 9, 2017 at 8:36 AM, Andrus Adamchik wr= ote: > >> On Oct 9, 2017, at 3:12 PM, Robert Zeigler = wrote: >> * Ease of use - the runtime API is well thought-out from a user=E2=80=99= s perspective. I still miss it. In particular, the SelectQuery API is very = nice, and Cayenne=E2=80=99s default approaches to ideas like lazy loading, = automatic association of new objects with the object context, etc. > > And this was before 4.0. Now we have ObjectSelect, SelectById and SQLSele= ct/SQLExec that are modern type-safe fluent descendants of SelectQuery/SQLT= emplate. > >> * Clear separation of the object from the db models. ORM is great for 90= % of the use-cases in an application. Sometimes, you need to bypass it. Cay= enne made bypassing it straightforward and clean. > > Great to hear that this aspect gets some praise. I have always taken it f= or granted, but I guess we shouldn't. > >> * SQLTemplate! You could build an entire, very performant application of= f of SQLTemplate and still have a clean application. > > If you were still coding in Java, you'd love SQLSelect/SQLExec :) > > Andrus >