
io.corbel.lib.mongo.CurrencyMongoWriterConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongodb Show documentation
Show all versions of mongodb Show documentation
MongoDB Connection Library
package io.corbel.lib.mongo;
import java.util.Currency;
import org.springframework.core.convert.converter.Converter;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
public class CurrencyMongoWriterConverter implements Converter {
@Override
public DBObject convert(Currency currency) {
return new BasicDBObject("currencyCode", currency.getCurrencyCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy