
io.corbel.lib.mongo.CurrencyMongoReaderConverter 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.DBObject;
public class CurrencyMongoReaderConverter implements Converter {
@Override
public Currency convert(DBObject object) {
return Currency.getInstance(String.valueOf(object.get("currencyCode")));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy