Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 94163 invoked from network); 20 May 2008 01:31:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 May 2008 01:31:12 -0000 Received: (qmail 2155 invoked by uid 500); 20 May 2008 01:31:14 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 2131 invoked by uid 500); 20 May 2008 01:31:14 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 2114 invoked by uid 99); 20 May 2008 01:31:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 18:31:13 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of plinskey@gmail.com designates 209.85.146.178 as permitted sender) Received: from [209.85.146.178] (HELO wa-out-1112.google.com) (209.85.146.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 01:30:25 +0000 Received: by wa-out-1112.google.com with SMTP id n7so1933714wag.13 for ; Mon, 19 May 2008 18:30:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=pjixLCAkn5jxbKQstwcVHig6u+Lz+QekWPuc1PgdpvE=; b=suhWthYuW6BCedNWDezOfAQnPGmihMO05QeuMqzV1to2mriNUUJGA80GVvzi3g/pv0SIbfHuEm/wv9XkIzd8HGYGW2yDRtXJrWwHTsY4j+gGQPxa6Lya6MhCPnZwSaB5tRu3izP8jYIsoWLHpfywI06sCv7jWlFuPaZ6JUHGn3U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=yGMWlk/1Rft/kV13Dsymwd1OAjvWV1v4dtLpkqAhO/7SswY+cbPDU/s0sazQdtT78wbjqJAXMH/HCkbfwqJIdMGOq33YB3zDYW6XZjQYk4FxSIFrcocie4aQI5PpvWSDK7kE+mTsxqFJq4A8oLYF3S51G20YV4xO7pA+zuAoRhk= Received: by 10.114.173.15 with SMTP id v15mr8201541wae.63.1211247041149; Mon, 19 May 2008 18:30:41 -0700 (PDT) Received: from fantasia.bea.com ( [66.248.222.34]) by mx.google.com with ESMTPS id j29sm25868130waf.49.2008.05.19.18.30.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 May 2008 18:30:40 -0700 (PDT) Message-Id: <12095511-64E0-4CD7-B5C2-3F95C4566E7A@gmail.com> From: Patrick Linskey To: dev@openjpa.apache.org In-Reply-To: <17331076.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: 1.1.0-SNAPSHOT: insert skipped when no columns to be set Date: Mon, 19 May 2008 18:30:36 -0700 References: <17331076.post@talk.nabble.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org Hi, Yeah, I think I've seen that behavior before. What happens if you add a version column? -Patrick On May 19, 2008, at 5:48 PM, roger.keays wrote: > > Hi All, > > Given an entity like > > Class A { > @Id @GeneratedValue(strategy=IDENTITY) > Long id; > > @OneToMany(mappedBy="somefield") > List things; > } > > If you try to persist it, no insert happens, because the row doesn't > actually have any data in it. Although, if you add a string field > with a > value the insert does occur. > > Has anybody else noticed this? > > Cheers, > > Roger > -- > View this message in context: http://www.nabble.com/1.1.0-SNAPSHOT%3A-insert-skipped-when-no-columns-to-be-set-tp17331076p17331076.html > Sent from the OpenJPA Developers mailing list archive at Nabble.com. > -- Patrick Linskey 202 669 5907