I am using Hibernate on Grails.
When I have field validation error, the exception message contains redundant message.
e.g
Provided id of the wrong type for class ad.Client. Expected: class java.lang.String, got class java.lang.Long; nested exception is org.hibernate.TypeMismatchException: Provided id of the wrong type for class org.ad.Client. Expected: class java.lang.String, got class java.lang.Long
when I have many field erros, I got a lot of unexpected redundant messages, why is this happening?
try{ new Client(params).save(failOnError:true); }catch(Exception ex){println ex.getMessage();}- t31321