| When an entity has been locked within a transaction and later a standard refresh is invoked upon it this causes the EntityManager.getLockMode to return the standard OPTIMISTIC lock mode type (indicating not locked). A simple project has been included which illustrates this. |