Class OriginalStatesNotFoundException

All Implemented Interfaces:
Serializable

public class OriginalStatesNotFoundException extends JdbcException
Exception thrown when a field annotated with OriginalStates is not found in an entity.

This exception is typically thrown when Doma attempts to access the original states of an entity but cannot find a field annotated with OriginalStates. The original states field is required for optimistic concurrency control and for determining which properties have changed since the entity was loaded.

See Also:
  • Constructor Details

    • OriginalStatesNotFoundException

      public OriginalStatesNotFoundException(Throwable cause, String entityClassName, String fieldName)
      Constructs a new exception with the specified cause, entity class name, and field name.
      Parameters:
      cause - the cause of this exception
      entityClassName - the fully qualified name of the entity class
      fieldName - the name of the field that was expected to be annotated with OriginalStates
  • Method Details

    • getEntityClassName

      public String getEntityClassName()
    • getFieldName

      public String getFieldName()