protected void configureExtendedTypes(ExtendedTypeMap map) {
super.configureExtendedTypes(map);
// handling internaly binary types as blobs or clobs generates exceptions
// Blob.length() and Clob.length() methods are optional (http://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#length())
// and firebird driver doesn't support them.
map.registerType(new ByteArrayType(true, false));
map.registerType(new CharType(true, false));
}