Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id F25E8633AA0 for ; Fri, 20 Mar 2009 23:41:40 -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 54800-04 for ; Fri, 20 Mar 2009 23:41:29 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mail.postgresql.org (Postfix) with ESMTP id 1CBBE633A8A for ; Fri, 20 Mar 2009 23:41:39 -0300 (ADT) Received: by yw-out-2324.google.com with SMTP id 3so858020ywj.73 for ; Fri, 20 Mar 2009 19:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:cc:content-type :content-transfer-encoding; bh=ia2OL29XXgHuN5//z1ZyKE9mUvEjlDbCzOu63dobYes=; b=I5i0lusNcz86dJ1XR86OFqCrMezO1vWRjw884RW6v3csjfQdrO6fQbFKT+aPPwbpyj NeNFgGeweynpeIUMKyMXvFCr4I7wUCuk0uCi9b/oYUoCbdE+y7WBJBc1SXS3wntHzwUC uN91oU2ISa+oiyt7JF5CXgr2/93neoW7M1Fwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; b=lgum+8HGRBeQ7D5Lh82B53trkARMTRtt98l3DgDPX7yiBdiBmwFtP8ODCB8j1fYyV6 sCsTOKro4JhXHblz9R7B6eHvb1CcNvMT9yeZOgc5hsToYqHdF79/3hdtPWKFW0t446a5 anoWtRqT4/XLOC2DpwM9oFmlUiNk2EIhnN4uw= MIME-Version: 1.0 Received: by 10.150.178.9 with SMTP id a9mr227594ybf.202.1237603297616; Fri, 20 Mar 2009 19:41:37 -0700 (PDT) In-Reply-To: <396486430903201938m31b826a8m44e5fdb90945bf31@mail.gmail.com> References: <396486430903201938m31b826a8m44e5fdb90945bf31@mail.gmail.com> Date: Fri, 20 Mar 2009 19:41:37 -0700 Message-ID: <396486430903201941r3d92c9b3n14e4bce778be23bf@mail.gmail.com> Subject: Re: PostgreSQL versioning for ORM was: Hibernate, JBoss, PostgreSQL, timestamp read doesn't match during update From: Richard Broersma Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=0 required=5 tests=AWL=-0.790, MISSING_HEADERS=1.581 X-Spam-Level: X-Archive-Number: 200903/106 X-Sequence-Number: 19436 oops, forgot to reply-all. :( On Fri, Mar 20, 2009 at 7:38 PM, Richard Broersma wrote: > On Fri, Mar 20, 2009 at 11:13 AM, Roland Roberts w= rote: > >> Then why bother having the generated attribute to version? =A0That flies= in the >> face of the design of *Hibernate* in allowing this. =A0Hibernate *does* = do the >> right thing in querying the column to get the value back after the updat= e. >> =A0You're telling me to not do what Hibernate explicitly say I can do. = =A0Why? > > This is a question from an ORM beginner. =A0It is possible to use > PostgreSQL's build in row versioning (i.e. CTID or XMIN) for > Optimistic locking in ORMs like Hibernate and JPA? > > -- > Regards, > Richard Broersma Jr. > > Visit the Los Angeles PostgreSQL Users Group (LAPUG) > http://pugs.postgresql.org/lapug > --=20 Regards, Richard Broersma Jr. Visit the Los Angeles PostgreSQL Users Group (LAPUG) http://pugs.postgresql.org/lapug