JPA Constructor
in jakarta.persistence.OptimisticLockException

OptimisticLockException(
  String message, 
  Throwable cause, 
  Object entity
)


Constructs a new OptimisticLockException exception with the specified detail message, cause, and entity.
Parameters:
message - the detail message.
cause - the cause.
entity - the entity.
Since:
JPA 1.0