From: <max...@us...> - 2006-02-06 10:09:23
|
Update of /cvsroot/hibernate/Hibernate3/src/org/hibernate/type In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19638/src/org/hibernate/type Modified Files: Tag: Branch_3_1 NullableType.java Log Message: rehtrow runtime ex and log when sqlexception occurs for get/set Index: NullableType.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate3/src/org/hibernate/type/NullableType.java,v retrieving revision 1.10 retrieving revision 1.10.2.1 diff -u -d -r1.10 -r1.10.2.1 --- NullableType.java 14 Sep 2005 19:54:49 -0000 1.10 +++ NullableType.java 6 Feb 2006 10:09:15 -0000 1.10.2.1 @@ -90,6 +90,14 @@ "could not bind value '" + toString(value) + "' to parameter: " + index ); + throw re; + } + catch (SQLException se) { + LogFactory.getLog( getClass() ).info( + "could not bind value '" + toString(value) + + "' to parameter: " + index + ); + throw se; } } @@ -133,6 +141,11 @@ .info("could not read column value from result set: " + name); throw re; } + catch (SQLException se) { + LogFactory.getLog( getClass() ) + .info("could not read column value from result set: " + name); + throw se; + } } public final Object nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner) |