Class MissingPrimaryKeyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dimstyl.orm.exceptions.MissingPrimaryKeyException
All Implemented Interfaces:
Serializable

public class MissingPrimaryKeyException extends RuntimeException
Exception thrown when an entity class does not have a primary key defined.

This exception is used to indicate that a class intended to be mapped to a database table is missing a field annotated with @PrimaryKey, which is required for proper ORM functionality.

See Also:
  • Constructor Details

    • MissingPrimaryKeyException

      public MissingPrimaryKeyException(String message)
      Constructs a new MissingPrimaryKeyException with the specified detail message.
      Parameters:
      message - The detail message explaining the reason for the exception.