Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 71C42633ACB for ; Fri, 20 Mar 2009 15:13:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 44777-04 for ; Fri, 20 Mar 2009 15:13:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx.astrofoto.org (mx.astrofoto.org [216.254.78.156]) by mail.postgresql.org (Postfix) with ESMTP id CEA636326B1 for ; Fri, 20 Mar 2009 15:13:46 -0300 (ADT) Message-ID: <49C3DCD1.10806@astrofoto.org> Date: Fri, 20 Mar 2009 14:13:37 -0400 From: Roland Roberts User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org References: <49C3C5FB.20706@astrofoto.org> <491f66a50903201102u22f2e81ah2383ff46a1cf6ff4@mail.gmail.com> In-Reply-To: <491f66a50903201102u22f2e81ah2383ff46a1cf6ff4@mail.gmail.com> Subject: Re: Hibernate, JBoss, PostgreSQL, timestamp read doesn't match during update Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 (built Tue, 02 May 2006 07:36:10 -0400) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/99 X-Sequence-Number: 19429 Dave Cramer wrote: > You should not use a trigger to generate the version info for > hibernate. You should use the application's time. Then why bother having the generated atribute to version? That flies in the face of the design of *Hibernate* in allowing this. Hibernate *does* do the right thing in querying the column to get the value back after the update. You're telling me to not do what Hibernate explicitly say I can do. Why? roland -- PGP Key ID: 66 BC 3B CD Roland B. Roberts, PhD RL Enterprises roland@rlenter.com 6818 Madeline Court roland@astrofoto.org Brooklyn, NY 11220