use of org.apache.cayenne.access.types.ByteArrayType in project cayenne by apache.
the class MySQLAdapter method configureExtendedTypes.
/**
* Installs appropriate ExtendedTypes used as converters for passing values
* between JDBC and Java layers.
*/
@Override
protected void configureExtendedTypes(ExtendedTypeMap map) {
super.configureExtendedTypes(map);
// must handle CLOBs as strings, otherwise there
// are problems with NULL clobs that are treated
// as empty strings... somehow this doesn't happen
// for BLOBs (ConnectorJ v. 3.0.9)
map.registerType(new CharType(false, false));
map.registerType(new ByteArrayType(false, false));
}
Aggregations