Skip to content

Instantly share code, notes, and snippets.

@marcpalmer
Created November 12, 2012 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcpalmer/4058909 to your computer and use it in GitHub Desktop.
Save marcpalmer/4058909 to your computer and use it in GitHub Desktop.
Hibernate optimist locking code snippet #3
select this_.id as id1_0_, this_.version as version1_0_, this_.ref as ref1_0_, this_.title as title1_0_, this_.url as url1_0_ from photo this_ where this_.ref=? limit ?
update photo set version=?, ref=?, title=?, url=? where id=? and version=?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment