protected void onMissingTypeVisit ( Table table , IndexField < ? > field ) { if ( ! Introspector . isModelClass ( field . getType ( ) ) ) { return ; } Field idField = Introspector . getOpenEngSBModelIdField ( field . getType ( ) ) ; if ( idField == null ) { LOG . warn ( "@Model class {} does not have an @OpenEngSBModelId" , field . getType ( ) ) ; return ; } DataType type = getTypeMap ( ) . getType ( idField . getType ( ) ) ; if ( type == null ) { LOG . warn ( "@OpenEngSBModelId field {} has an unmapped type {}" , field . getName ( ) , field . getType ( ) ) ; return ; } ( ( JdbcIndexField ) field ) . setMappedType ( type ) ; Column column = new Column ( getColumnNameTranslator ( ) . translate ( field ) , type ) ; table . addElement ( column ) ; // will hold the models OID onAfterFieldVisit ( table , column , field ) ; }
Called when type map returns null .