• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ORM for Android

 
Sahil Reddy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Geeks

1) Is it fine to use ORM for Android applications ?

2) Iff it is , then which ORM is the best one to use in Android Applications ?

3) Should it be backed by Mysql, Sqlite or otehr Database.... requirement is not much database operations.... Normal ones.

Thakns and Regards
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use an ORM if you think it makes your work easier.

Where would the DB be located? If you're talking about the SQLite DB built into Android, note that it's not accessible via JDBC, so any ORM tool built on top of JDBC will not work.

If you're talking about a DB not located on the device -like MySQL-, then you shouldn't access it via JDBC, so, again, any tool built on top of JDBC wouldn't be applicable.
 
Sahil Reddy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

1) Can i use Hibernate with Android, DB is located inside phone only......

2) I have heard abt MongoDB..... is it fine ?

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not aware of a Hibernate dialect for the Android version of SQLite; a web search should prove or disprove its existence quickly. I doubt there is one, though - Hibernate relies on a lot of different libraries, some of which perform Java bytecode manipulation, which would not work on Android.

Not sure what you mean by "is it fine" - what did you find out by visiting the MongoDB web site?
 
Nick Johnson
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try "GreenDao"........
 
Will Zelan
Ranch Hand
Posts: 56
Flex Python Windows Vista
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally,
https://github.com/bytor99999/AndroidSQLLiteOrm
 
Gaurav Singh Tomar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have gone through Siminov Android Framework, it is open source framework with proper user guide and documentation. It is easily configurable, handle application deployment, support multiple schemas and many more. I found it very useful and easy to use.Good thing is same available on other platforms also e.g iOS, Windows 8. I suggest you to try this, you will definitely find it useful and this ORM may solve your problems.

Url: http://siminov.github.io/android-orm/
 
L Foster
Ranch Hand
Posts: 168
10
Android Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see this is an old post, but I only just saw it, and felt I could contribute. I have built an android app that uses an ORM, but entirely on the server. The data feed is from a remove database, and the app is using a RESTful interface to that. This is a recent construction, and I do not yet have any traffic, so I cannot give any feedback on how well it performs, except to say that I do not perceive any time lapse between tapping the control that launches the fetch, and seeing the highly-parsed results on the screen. The results are even in rather fat XML.
 
honda aoki
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is an old topic but since then there have been many good ORM libraries getting released. The most popular ones are greenDAO, ActiveAndroid.

If a project is simple, use ActiveAndroid. If it is big, use greenDAO.

Besides these 2 libraries, there are many good alternatives such as DBFlow, SugarORM. The list can be found on http://www.androidnames.com/development/best-android-orm-libraries-to-use/.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic