You could try not using CHAR(1) mapped to java as Character class. Then the code blows up at
22 public Object get(ResultSet rs, String name) throws SQLException {
23 String str = rs.getString(name);
24 if (str==null) {
25 return null;
26 }
27 else {
28 return new Character( str.charAt(0) );
29 }
30 }
As another workaround you could patch the class with sth like here
http://groups.google.com/group/jmatter- ... d433fd41f0
27,36c24,25
< String checkValue = rs.getString(names[0]);
< if (checkValue.length() == 0) // this condition turns out to
be true with MySQL..
< {
< return new CharEO();
< }
< else
< {
< Character value = (Character)
Hibernate.CHARACTER.nullSafeGet(rs, names[0]);
< return (value==null) ? null : new CharEO(value.charValue());
< }