hibernate/hibernate-orm — pull request #315 by bvarner (2012-04-17 18:05:20+00:00)
Title: HHH-7252 - AbstractEntityManagerImpl not properly mapping lock-releated exceptions in find() method.

The code was a bit non-obvious (assignment in a method call argument) where it was being done, and the local variable (lockOptions) assignment was missing in the find() method implementation.
I changed all instances of lockOptions assignment to assign before the method call where it's required as an argument, ensuring proper scope for exception mapping.