JPA Methodin javax.persistence.OptimisticLockExceptionObject getEntity() Returns the entity that caused this exception. Return: the entity.Since:JPA 1.0