pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma <richard.broersma@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PostgreSQL versioning for ORM was: Hibernate, JBoss, PostgreSQL, timestamp read doesn't match during update
Date: Fri, 20 Mar 2009 19:41:37 -0700
Message-ID: <396486430903201941r3d92c9b3n14e4bce778be23bf@mail.gmail.com> (raw)
In-Reply-To: <396486430903201938m31b826a8m44e5fdb90945bf31@mail.gmail.com>
References: <396486430903201938m31b826a8m44e5fdb90945bf31@mail.gmail.com>

oops, forgot to reply-all. :(

On Fri, Mar 20, 2009 at 7:38 PM, Richard Broersma
<richard.broersma@gmail.com> wrote:
> On Fri, Mar 20, 2009 at 11:13 AM, Roland Roberts <roland@astrofoto.org> wrote:
>
>> Then why bother having the generated attribute 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?
>
> This is a question from an ORM beginner.  It 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
>



-- 
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug



Message-ID: <396486430903201941r3d92c9b3n14e4bce778be23bf@mail.gmail.com>
Permalink:  ../396486430903201941r3d92c9b3n14e4bce778be23bf@mail.gmail.com/
Also on:    postgresql.org/message-id/396486430903201941r3d92c9b3n14e4bce778be23bf@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: richard.broersma@gmail.com
  Subject: Re: PostgreSQL versioning for ORM was: Hibernate, JBoss, PostgreSQL, timestamp read doesn't match during update
  In-Reply-To: <396486430903201941r3d92c9b3n14e4bce778be23bf@mail.gmail.com>
  References: <396486430903201938m31b826a8m44e5fdb90945bf31@mail.gmail.com> <396486430903201941r3d92c9b3n14e4bce778be23bf@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox