com.bq.oss.lib.mongo.CurrencyMongoReaderConverter Maven / Gradle / Ivy
package com.bq.oss.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