Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 74250 invoked from network); 15 Feb 2011 17:17:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2011 17:17:51 -0000 Received: (qmail 80721 invoked by uid 500); 15 Feb 2011 17:17:51 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 79967 invoked by uid 500); 15 Feb 2011 17:17:47 -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 79956 invoked by uid 99); 15 Feb 2011 17:17:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 17:17:46 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of netmaniac@libero.it) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 17:17:40 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PpOWc-0000AO-W0 for users@openjpa.apache.org; Tue, 15 Feb 2011 09:17:18 -0800 Date: Tue, 15 Feb 2011 09:17:18 -0800 (PST) From: Diego Cattelan To: users@openjpa.apache.org Message-ID: <1297790238959-6028445.post@n2.nabble.com> In-Reply-To: <28315067.119861297778571463.JavaMail.defaultUser@defaultHost> References: <28315067.119861297778571463.JavaMail.defaultUser@defaultHost> Subject: Re: N query problem with @Version MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Update: even removing inheritance from BasicEntity the behaviour doesn't change, only the query for retrieving rowVersion changed SELECT t0.rowVersion FROM ana_anagrafica t0 WHERE t0.id = ? using inheritance it is SELECT t0.rowVersion FROM ana_custom t0 WHERE t0.id = ? AND t0.id = ? -- View this message in context: http://openjpa.208410.n2.nabble.com/N-query-problem-with-Version-tp6027619p6028445.html Sent from the OpenJPA Users mailing list archive at Nabble.com.