protected AnnotationInstance parserColumn(JaxbColumn column, AnnotationTarget target) { if ( column == null ) { return null; } List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", column.getName(), annotationValueList ); MockHelper.stringValue( "columnDefinition", column.getColumnDefinition(), annotationValueList ); MockHelper.stringValue( "table", column.getTable(), annotationValueList ); MockHelper.booleanValue( "unique", column.isUnique(), annotationValueList ); MockHelper.booleanValue( "nullable", column.isNullable(), annotationValueList ); MockHelper.booleanValue( "insertable", column.isInsertable(), annotationValueList ); MockHelper.booleanValue( "updatable", column.isUpdatable(), annotationValueList ); MockHelper.integerValue( "length", column.getLength(), annotationValueList ); MockHelper.integerValue( "precision", column.getPrecision(), annotationValueList ); MockHelper.integerValue( "scale", column.getScale(), annotationValueList ); return create( COLUMN, target, annotationValueList ); }
protected AnnotationInstance parserColumn(JaxbColumn column, AnnotationTarget target) { if ( column == null ) { return null; } List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", column.getName(), annotationValueList ); MockHelper.stringValue( "columnDefinition", column.getColumnDefinition(), annotationValueList ); MockHelper.stringValue( "table", column.getTable(), annotationValueList ); MockHelper.booleanValue( "unique", column.isUnique(), annotationValueList ); MockHelper.booleanValue( "nullable", column.isNullable(), annotationValueList ); MockHelper.booleanValue( "insertable", column.isInsertable(), annotationValueList ); MockHelper.booleanValue( "updatable", column.isUpdatable(), annotationValueList ); MockHelper.integerValue( "length", column.getLength(), annotationValueList ); MockHelper.integerValue( "precision", column.getPrecision(), annotationValueList ); MockHelper.integerValue( "scale", column.getScale(), annotationValueList ); return create( COLUMN, target, annotationValueList ); }