Created
November 12, 2012 11:47
-
-
Save marcpalmer/4058909 to your computer and use it in GitHub Desktop.
Hibernate optimist locking code snippet #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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