Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 51011 invoked from network); 9 Jul 2008 20:32:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2008 20:32:05 -0000 Received: (qmail 8928 invoked by uid 500); 9 Jul 2008 20:32:05 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 8906 invoked by uid 500); 9 Jul 2008 20:32:05 -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 8895 invoked by uid 99); 9 Jul 2008 20:32:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 13:32:05 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists+1214986160035-208411@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 20:31:12 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KGgK6-00085v-EB for users@openjpa.apache.org; Wed, 09 Jul 2008 13:31:34 -0700 Message-ID: <1215635494432-471292.post@n2.nabble.com> Date: Wed, 9 Jul 2008 13:31:34 -0700 (PDT) From: ericp56 To: users@openjpa.apache.org Subject: Persist method is updating my reference tables, too. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: eric.phetteplace@twcable.com X-Virus-Checked: Checked by ClamAV on apache.org I am using an EntityManager to look up information in a reference table. I use the resulting object to set an int value in a new record I will persist. When I persist, the new record is inserted, and the reference table is updated (yikes). Am I not understanding something about this? Should I set up a second EntityManager for "read-only" database records? Eric -- View this message in context: http://n2.nabble.com/Persist-method-is-updating-my-reference-tables%2C-too.-tp471292p471292.html Sent from the OpenJPA Users mailing list archive at Nabble.com.