|
i use get-/set-method for my booleans:
<field name="boss"
type="boolean" get-method="isBoss" set-method="setBoss">
<sql name="isBoss" type="char[ft]" dirty="ignore"/> </field> although the method setBoss(boolean) is available
it is not found.
imho this is a problem of FiledMolder, it calls
findAccessor with wrong class (methodClass):
// Second look up the
set/add accessor
if ( fieldMap.getSetMethod() != null ) { Class methodClass = _colClass!=null? _colClass: javaClass; // CHANGED _defaultReflectService._setMethod = findAccessor( javaClass, fieldMap.getSetMethod(), methodClass, false ); _defaultReflectService._setMethod = findAccessor( javaClass, fieldMap.getSetMethod(), _defaultReflectService._fClass, false ); if ( _defaultReflectService._setMethod == null ) throw new MappingException( "mapping.accessorNotFound", fieldMap.getSetMethod(), _defaultReflectService._fClass, javaClass.getName() ); if ( _defaultReflectService._fClass == null ) _defaultReflectService._fClass = _defaultReflectService._setMethod.getParameterTypes()[ 0 ]; } regards
jakob
braeuchi |
