package embl.ebi.variation.commons.models.converters.data;

import org.springframework.core.convert.converter.Converter;
import com.mongodb.DBObject;
import org.opencb.biodata.models.variant.Variant;

/**
 * Created by tom on 21/09/16.
 */
public class VariantWriteConverter implements Converter<Variant, DBObject> {

    @Override
    public DBObject convert(Variant variant) {
        return null;
    }

}

@@ -53,16 +53,94 @@
 .data;%0A%0A
+import org.opencb.opencga.storage.mongodb.variant.DBObjectToVariantConverter;%0A
 import o
@@ -462,19 +462,169 @@
     
-return null
+DBObjectToVariantConverter dbObjectToVariantConverter = new DBObjectToVariantConverter();%0A        return dbObjectToVariantConverter.convertToStorageType(variant)
 ;%0A  

Convert by wrapping DBObjectToVariantConverter for variant to dbobject