Class TooManyRowsAffectedException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BatchedTooManyRowsAffectedException

public class TooManyRowsAffectedException extends HibernateException
Indicates that more rows were affected than we were expecting to be. Typically indicates presence of duplicate "PK" values in the given table.
See Also:
  • Constructor Details

    • TooManyRowsAffectedException

      public TooManyRowsAffectedException(String message, int expectedRowCount, int actualRowCount)
  • Method Details

    • getExpectedRowCount

      public int getExpectedRowCount()
    • getActualRowCount

      public int getActualRowCount()