When call EntityManager.merge() on detached object, Hibernate doesn't take in account version field value if it is null and EM.merge() creates a new instance.
We think the right behavior is to throw an OptimisticLockException
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira