[
https://issues.jboss.org/browse/WFLY-2902?page=com.atlassian.jira.plugin....
]
Scott Marlow commented on WFLY-2902:
------------------------------------
As a workaround for this bug, you could ask Hibernate to log the SQL that is executed.
{quote}
<logger category="org.hibernate.SQL">
<level name="TRACE" />
</logger>
{quote}
LockModeType.PESSIMISTIC_WRITE reported as NONE in the logs
-----------------------------------------------------------
Key: WFLY-2902
URL:
https://issues.jboss.org/browse/WFLY-2902
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JPA / Hibernate
Affects Versions: 8.0.0.CR1
Environment: Ubuntu 13.10, Oracle JVM 1.7.0u51.
Reporter: Jari Juslin
Assignee: Scott Marlow
Priority: Minor
The method getLockModeAsString reports lock mode
LockModeType.PESSIMISTIC_WRITE as "none".
This of course is a cosmetic issue, but highly misleading, considering PESSIMISTIC_WRITE
is pretty much on the opposite end of the spectrum from NONE. Ie. looking at the logs
it's not possible to know if there was the strictest possible lock or no lock at all.
--
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