I’m trying to store an instance of a RatesProvider object in a database and I’ve tried using Object Mapping with using https://github.com/FasterXML/jackson . However due to self-references in the Rates Provider class the serialization fails.
The error is Direct self-reference leading to cycle (through reference chain: com.opengamma.strata.pricer.rate.ImmutableRatesProvider[“iborIndices”]->com.google.common.collect.SingletonImmutableSet->com.opengamma.strata.basics.index.ImmutableIborIndex[“currency”]->com.opengamma.strata.basics.currency.Currency[“triangulationCurrency”])
Have you been able to store RatesProvider objects in databases? Any other classes I could use? Any suggestions?