How to Serialize Hibernate Collections Properly?

后端 未结 3 2074
时光取名叫无心
时光取名叫无心 2020-12-17 06:37

I\'m trying to serialize objects from a database that have been retrieved with Hibernate, and I\'m only interested in the objects\' actual data in its entirety (cycles inclu

3条回答
  •  臣服心动
    2020-12-17 07:02

    solution described here worked well for me: http://jira.codehaus.org/browse/XSTR-226

    the idea is to have custom XStream converter/mapper for hibernate collections, which will extract actual collection from hibernate one and will call corresponding standard converter (for ArrayList, HashMap etc.)

提交回复
热议问题