使用XStream序列化Hibernate对象的问题 [英] Issue with serializing Hibernate objects using XStream

查看:112
本文介绍了使用XStream序列化Hibernate对象的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们对对象进行了一些清理,在序列化对象之前。



但是,是否有标准选项可用于直接序列化对象?

解决方案

XStream现在提供了一个单独的模块/ jar来处理Hibernate集合。请参阅 XStream的常见问题解答


I've been facing this issue where, the hibernate objects on serialization produces unexpect xmls containing all the instrumented code from Hibernate.

We did some cleaning of the object before serializing the object.

But, is there a standard option available to serialize the object directly?

解决方案

XStream now provides a separate module/jar to handle Hibernate collections. Please see XStream's FAQ for an example.

这篇关于使用XStream序列化Hibernate对象的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆