Is it pertinent and efficient to use an ORM on Android?

How to use ORM in android

  • I have to use ORM in android. I have read about the ORM from that I have understood that It is layer between Front end and Back End Database. Can any one please tell what is mean by ORM and how to use in android program. What is the advantage to use the ORM.

  • Answer:

    ORM solutions for Android have already been discussed http://stackoverflow.com/questions/371538/any-good-orm-tools-for-android-development. http://ormlite.com/ is a good starting point. An ORM stands for Object Relational Mapping and will map database tables to entities. For a Persons table for example, a class Person will be created. You will then be able to edit the fields of the class and when you call a "save" method, the database table will be updated.

mayur rahatekar at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

You might want to check a look at http://stackoverflow.com/questions/371538/any-good-orm-tools-for-android-development previous SO post in which they discuss what you need. You can find the definition of what an ORM is on http://en.wikipedia.org/wiki/Object-relational_mapping. It basically allows you make code which is database independent (among other advantages), so you can switch databases and all you need to do is a minor configuration rather than changing all your query statements.

npinti

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.