问题描述
我发现了一个帖子从前段时间的解决了类似的问题,但我认为这是一个有点过时。我知道JPA的实现更倾向于对重/茂密的一面,因此,如果您知道任何轻量级(非JPA)的ORM我会肯定AP preciate您的输入。我没有看到有关 ActiveAndroid 答案中的其他职务,并很想知道,如果有人尝试过了。
I found a post from a while ago that addresses a similar question but I think it's a bit outdated. I realize implementations of JPA tend to be more on the heavy/dense side, so if you know of any lightweight (non-JPA) ORMs I'll most certainly appreciate your input. I did see the answer about ActiveAndroid in the other post and am curious to know if anyone tried it out.
更新
在最后,我决定去一个更轻量级的解决方案,并选择 DB4O 。到目前为止,我已经很高兴与我的选择。它们也非常容易使用并需要配置的最小量。该网站包含了丰富的信息,包括样本项目,并进行了深入的,涵盖几乎所有开发人员可能需要了解DB4O。哦,我提到它是免费的(不像其他一些替代品... *咳嗽* ActiveDroid *咳嗽*)?
In the end, I decided to go with a more lightweight solution and chose DB4O. So far I've been very happy with my choice. It's extremely easy to use and requires a minimal amount of configuration. The website contains a wealth of information including sample projects and an in-depth tutorial that covers just about everything a developer might need to know about DB4O. Oh, and did I mention that it's free (unlike some other alternatives... *cough*ActiveDroid*cough*)?
推荐答案
关于JPA的实现,至少有一个的以休眠。我不是100%肯定,但EclipseLink的似乎是一种选择太(虽然SQLite的不正式支持)。
但对于Android的发展,我肯定会检查 ActiveAndroid 。
But for Android development, I would definitely check ActiveAndroid.
以防万一,这里有一些其他的替代品: jPersist ,的, Dreamsource ORM (看看在 TSS上公布)。
Just in case, here are some other alternatives: jPersist, Ebean, Dreamsource ORM (have a look at the announcement on TSS).
这篇关于是否有良好的奥姆斯(preferably JPA实现),支持SQLite的(在Android)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!