| Summary: | Pessismistic locking failed for a non-version entity | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Sherry Hill <sherry.hill> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | critical | ||
| Priority: | P2 | CC: | gordon.yorke, guy.pelletier, mitesh.meswani, sherry.hill, tom.ware |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | Sun | ||
| OS: | Solaris | ||
| Whiteboard: | |||
With the change to the new Pessimistic locking strings the Query code must be updated. See ObjectLevelReadQuery.setLockModeType and maybe others. Setting target and priority. For information about the meaning of these settings, see the following document: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines This issue will be resolved with the fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=248489 *** This bug has been marked as a duplicate of bug 248489 *** Mass update to change fixed in target. Mass update to change fixed in target. Mass update to change fixed in target. Mass update to change fixed in target. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Build ID: 2.0.0.v20090424-r4050 Steps To Reproduce: For a non-version entity Part, Part p = em.find(Part.class, pID, LockModeType.PESSIMISTIC_WRITE); pessimistic locking failed on EclipseLink 2.0.0.v20090424-r4050. javax.persistence.PersistenceException: Invalid lock mode type on for an entity that does not have a version locking index. Only a PESSIMISTIC lock mode type can be used when there is no version locking index.|#] More information: It is a regression of glassfish v3 jpa2.0 feature. https://glassfish.dev.java.net/issues/show_bug.cgi?id=8063