Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 87721 invoked from network); 9 Feb 2011 19:52:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2011 19:52:40 -0000 Received: (qmail 48015 invoked by uid 500); 9 Feb 2011 19:52:40 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 47805 invoked by uid 500); 9 Feb 2011 19:52:39 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 47797 invoked by uid 99); 9 Feb 2011 19:52:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 19:52:38 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 19:52:28 +0000 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p19Jq5rp028321 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Feb 2011 19:52:06 GMT Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p19GsddO028264 for ; Wed, 9 Feb 2011 19:52:04 GMT Received: from abhmt008.oracle.com by acsmt354.oracle.com with ESMTP id 1038996591297281091; Wed, 09 Feb 2011 11:51:31 -0800 Received: from [192.168.0.12] (/69.181.138.81) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 09 Feb 2011 11:51:31 -0800 Message-Id: From: Craig L Russell To: users@openjpa.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Subject: Re: Evicting Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 9 Feb 2011 11:51:30 -0800 References: <7E895099-9B2D-427E-AEB0-C678D4A0A9D6@oracle.com> X-Mailer: Apple Mail (2.936) X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4D52F065.0053:SCFMA4539814,ss=1,fgs=0 X-Virus-Checked: Checked by ClamAV on apache.org Hi Daryl, I think the core issue is how your objects fit into the architecture. JPA, Hibernate, JDO, EclipseLink, TOPLink, and other domain object model architectures share this architecture: the application interacts with a persistence manager that in turn manages a persistent object cache that manages a collection of domain objects that have no knowledge of the persistence environment. This is very different from the Data Access Object pattern in which each object is responsible for its own persistent life cycle. From your brief description you're using the DAO pattern. Craig On Feb 9, 2011, at 5:43 AM, Daryl Stultz wrote: >> >> If you want to isolate changes to job1 and job2 you would have to >> buffer >> changes (e.g. setName) and only apply them when performing the save. >> > > I am the developer of the core Java code of my application. I can > deal with > issues like this when I have to, but I have people on staff writing > JavaScript extensions to the product who know nothing about how JPA > works > and ideally shouldn't have to. > > Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:Craig.Russell@oracle.com P.S. A good JDO? O, Gasp!