Somewhere inside the JBoss in the sleep request, I get an error that leaves me with a ResultSet. This code is connected to a user data type.
It would be nice if I could just do rs.getStatement (). toString () and get it over with, but unfortunately it doesn't give anything about the sql statement that went into it.
I was thinking of doing something with ((PreparedStatement) rs.getStatement ()). getMetaData ().
I really wanted the hibernation mode to be a little more informative when it encountered errors. Does anyone have a good solution to help identify which table and which column were used when an exception occurred?
source share