用于持久保存Java对象的轻量级选项有哪些 [英] What are the lightweight options one has to persist Java objects

查看:133
本文介绍了用于持久保存Java对象的轻量级选项有哪些的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

持有Java对象的轻量级选项是什么?

What are the lightweight options one has to persist Java objects ?

我正在寻找最简单的解决方案。我不希望任何花哨的特征只是简单的东西,与合理简单的对象(一些集合,关系和简单的继承)一起工作,并且不会给现有的代码库带来太多明显的复杂性(如果有的话)。

I'm looking for the easiest possible solution. I don't want anything fancy featurewise just something simple that works with reasonnably simple objects (some collections, relationships and simple inheritance) and doesn't bring too much apparent complexity (if any) to the existing codebase.

我所知道的选项包括Hibernate和EMF等框架,但它们听起来(并且经验丰富)过于复杂和耗时。我喜欢开箱即用的东西,最好是文件导向而不是dababase导向,我可以把它放在我普通的旧java对象之上。

The options I'm aware of include Hibernate and frameworks such as EMF but they sound (and have been experienced to be) too complex and time-consuming. I'd like something out of the box, preferably file oriented than dababase oriented, that I can just put on top of my plain old java objects.

这是一个新手问题,提前感谢任何类似教程的上下文澄清指南。

This is a newbie question, thanks in advance for any tutorial-like, context clarifying guidance.

推荐答案

db4o 是一个对象数据库,因此没有架构设置,它可以很好地适应对象结构随时间的变化。

db4o is an object database so there's no schema setup and it adapts well to changes in object structure over time.

这篇关于用于持久保存Java对象的轻量级选项有哪些的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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