public CharacterToByteConverter() { super(Character.class, char.class); }
@Override
public Object decode(Class targetClass, Object fromDBObject, MappedField optionalExtraInfo) throws MappingException {
if (fromDBObject == null) return null;
IntegerConverter intConv = new IntegerConverter();
Integer i = (Integer)intConv.decode(targetClass, fromDBObject, optionalExtraInfo);
return new Character((char)i.intValue());
}