According to the net.sf.hibernate.JDBCException.SQLStateConverter class.
Due to the following line:
Code:
INTEGRITY_VIOLATION_CATEGORIES.add("22")
all sqlstate that begins with '22' are belonging to the ConstraintViolationException.
In my case, my sqlstate is "Error in assignment. SQLSTATE=22005",
it isn't a Constraint Violation but reported as.
According to specifications of DB2, "22xxx" is for "Data Exception".
Please have a look to the following link:
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzala/rzalastc.html
I'm far to be a DB2 specialist, so maybe I've missed something?
Johann
Hibernate version:2.1.7c
Name and version of the database you are using: DB2 v7.2