绿色DAO VS ORM精简版VS活跃的Andr​​oid精简版、活跃、VS、DAO

2023-09-12 10:58:37 作者:、最美的風景

这是最好的ORM工具可用于Android?

Which is the best ORM tool available for Android?

我看到ORMlite和ActiveAndroid是整个讨论最多的也是我的朋友建议我用GreenDAO。因此,寻找一些知识资源,可以帮助我的决策?

I am seeing ORMlite and ActiveAndroid are the most discussed across and a friend of mine suggested me to use GreenDAO. So looking for some knowledge resource which can help me in Decision Making?

特点我期待判断可以免费获得(开源),良好的文档,活跃的论坛,提供稳定的版本等,这些以往需要开发。

Features I am looking to judge are freely available (open source), good documentation, active forums, stable version available, etc, which ever required for developer.

推荐答案

ORMLite和GreenDAO之间的差别在于注释的使用。虽然ORMLite使用批注,GreenDAO并不像描述这里。

A difference between ORMLite and GreenDAO is the usage of annotations. While ORMLite uses Annotations, GreenDAO does not, as described here.

注解靠反射,这可能会影响性能以消极的方式特别是在速度较慢的Andr​​oid设备。将是有趣的,看看标准相比较ORMLite和GreenDAO。

Annotations rely on reflection, which might impact performance especially on slower Android devices in a negative way. Would be interesting to see benchmarks comparing ORMLite and GreenDAO.