I have a object like such:
public class MyObject {
private Date date;
private Map<String, Object> items;
//default constructor
//getters and setters
}
In the items map I can save primitive objects (like strings, doubles etc) and also lists as values. I am able to save the object without any issues using a OObjectDatabaseTx.
However when I get the object back and try and detach all, it only detaches the objects in the items map that isn't a list. For lists it keeps them as OTrackedList. This causes a problem when I try to send the object via a rest API as JAXB doesn't know what a OTrackedList is. I get the following error:
JAXBException occurred : class com.orientechnologies.orient.core.db.record.OTrackedList nor any of its super class is known to this context.. class com.orientechnologies.orient.core.db.record.OTrackedList nor any of its super class is known to this context..
Can anyone help me with this? I am running out of ideas and seriously thinking about switching to another document database.