@jw3525: it is not feasible to suppress that log message, precisely because it is at level ERROR. In order to suppress that category, one needs to turn it off completely, and that is not always possible. Regarding your first question, performance can be a reason. If I need to insert a million records and I expect that maybe a 1000 of them will fail, I don't want to check their existence first, I want to catch the exception, and I don't want garbage in my logs.
Also, it is
not an hibernate error if a ConstraintViolationException occurs, if anything at all then it is an application error. Hibernate should let me decide if/how/when to log it, and not to pollute my logs.
Please see here ->
http://opensource.atlassian.com/project ... e/HHH-3731