0
目前字符串的ArrayList中,我試圖挽救地圖字符串的字符串和ArrayList爲:如何映射字符串的HashMap和使用嗎啡
@Embedded("prprty")
private HashMap<String, ArrayList<String>> prprtyMap;
但是,試圖挽救它導致異常
com.google.code.morphia.mapping.MappingException: Error mapping field:roposo.roposocore.models.ScheduleStoryMongo.prprtyMap
at com.google.code.morphia.mapping.Mapper.toDBObject(Mapper.java:542) ~[com.google.code.morphia.morphia-0.102.jar:na]
at com.google.code.morphia.mapping.Mapper.toDBObject(Mapper.java:522) ~[com.google.code.morphia.morphia-0.102.jar:na]
at com.google.code.morphia.DatastoreImpl.entityToDBObj(DatastoreImpl.java:775) ~[com.google.code.morphia.morphia-0.102.jar:na]
at com.google.code.morphia.DatastoreImpl.save(DatastoreImpl.java:836) ~[com.google.code.morphia.morphia-0.102.jar:na]
at com.google.code.morphia.DatastoreImpl.save(DatastoreImpl.java:913) ~[com.google.code.morphia.morphia-0.102.jar:na]
at com.google.code.morphia.DatastoreImpl.save(DatastoreImpl.java:898) ~[com.google.code.morphia.morphia-0.102.jar:na]
什麼是使用Morphia驅動程序保存這樣的地圖的正確方法?