Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 87897 invoked from network); 29 Aug 2007 19:37:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2007 19:37:22 -0000 Received: (qmail 31475 invoked by uid 500); 29 Aug 2007 19:37:18 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 31455 invoked by uid 500); 29 Aug 2007 19:37:18 -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 31446 invoked by uid 99); 29 Aug 2007 19:37:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 12:37:17 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@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, 29 Aug 2007 19:38:09 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IQTLO-0005Ge-V7 for users@openjpa.apache.org; Wed, 29 Aug 2007 12:36:50 -0700 Message-ID: <12394258.post@talk.nabble.com> Date: Wed, 29 Aug 2007 12:36:50 -0700 (PDT) From: Java_James To: users@openjpa.apache.org Subject: Re: merge with new instances In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: james-junk@rogers.com References: <655aef8a0707150954r3ec5e18r29c5e8643b6c2b11@mail.gmail.com> <62E1C8A0-6FDE-4EC3-92C6-37851D4B0DD6@apache.org> <53B67652-C4C4-4D83-9574-8C2EAD9B42D4@apache.org> <2CB41E5D-1ED6-41F8-B68E-CC7E05781652@gemstone.com> X-Virus-Checked: Checked by ClamAV on apache.org Hey guys, I'm having this exact same problem. Was there ever a solution to this? To answer the questions asked earlier on: >>>> 1. What is the type of the primary key? If it is a primitive, >>>> and you change it to be a wrapper type (e.g., java.util.Long >>>> instead of long), does it change anything? I originally had my pk as an int, but changed it to java.util.Integer, but it did not doing anything >>>> 2. Does this happen for all key values you have tried, or is >>>> there a specific one for which it fails? Specifically, I am >>>> wondering if this happens with id=0 (which we have had some >>>> problems with historically). My problem occurs regardless of the primary key value >>>> 3. Is the instance being serialized/deserialized before it is >>>> getting merged? It does. I am using a client/server webapp >>>> 4. If you enable SQL logging, do you see any lookups being >>>> attempted when you call merge()? Any tips on how to enable the SQL logging? I know lookups work, but I do not know if they work during merge() Thank you in advance -- View this message in context: http://www.nabble.com/merge-with-new-instances-tf4082904.html#a12394258 Sent from the OpenJPA Users mailing list archive at Nabble.com.