I have a couple of questions about your use case: 1) Why would you need to refresh an entity that is locked? 2) If you need the entity to be locked, why not refresh using: em.refresh( customer, LockModeType.PESSIMISTIC_WRITE ); I don't see anything in the spec that says that the previous lock should be maintained when refreshing an entity, so I'm not convinced that this is a bug. |