Expert |
![Expert Expert](./images/ranks/oldhand.gif) |
Joined: Tue Sep 16, 2003 4:06 pm Posts: 318 Location: St. Petersburg, Russia
|
I'm talking exactly about better exception message. Just to ease debugging.
It is much better when Hibernate tells "hey, you are doing something wrong - non-null property XXX of class YYY is null" than to dig through JDBC exception stack trace.
Different JDBC drivers may report the same problem with different diagnostics. And after all, not all JDBC drivers are verbose enough to explain what is wrong.
(For example, when you put string into NUMBER column, Oracle JDBC driver just says "invalid number" leaving to you guessing which column caused problem).
|
|