'; break; case 'int2': echo '<field type="Enum" column="'. $fieldName .'" label="'. $fieldName .'">
'; echo '<enum-mapping column="0">NS/NR</enum-mapping>
'; echo '</field>
'; break; case 'varchar': echo '<field type="String" column="'. $fieldName .'" label="'. $fieldName .'" max-length="256" />
'; break; case 'bit': echo '<field type="Boolean" column="'. $fieldName .'" label="'. $fieldName .'" />
'; break; case 'text': echo '<field type="Text" column="'. $fieldName .'" label="'. $fieldName .'" />
'; break; case 'timestamp': echo '<field type="Date" column="'. $fieldName .'" label="'. $fieldName .'" />
'; break; default: echo ''. $fieldType .'
'; break; } } ?>