Which is the best ORM tool available for Android?
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.
When we start up our Android app, greenDAO ORM creates an SQLite database file “greendao-demo-db” if that file doesn’t exist yet in /data/data/com.turreta.greendaogeneraldemo/databases. If the file already exists, greenDAO ORM uses it. From here on, we use an instance of DaoSession.
A ORM is a robust library/API that provides a bunch of tools to save/retrieve an object directly to/from the database without having to write your own SQL statements. EDIT: Note - they aren't opposing concepts (they actually go together quite well). It isn't uncommon for your DAO to use an ORM.
For example, there might be operations to retrieve a subset of data, update the data, or remove the data. It is much more generic than ORM - it simply is an object an application uses to retrieve data. ORM: An ORM usually describes a library/API used to make interactions with a database more robust.
greenDAO: Android ORM for your SQLite database - Open Source by greenrobot greenDAO is an open source Android ORM providing an easy and very fast way to use SQLite databases to help developers handle data efficiently. EventBus Features Documentation How to get started
I would suggest ORMlite its open source freeware & has good documentation also it support java as well as android.
It has good developer support & many application running on ORMlite (Including I have developed :) ).
check this comparison of ORMLite & Green DAO for your referance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With