File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ORM for Android

 
Sahil Reddy
Ranch Hand
Posts: 145
  • 0
  • 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
Pie
Posts: 42966
73
  • 0
  • 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
  • 0
  • 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
Pie
Posts: 42966
73
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try "GreenDao"........
 
L Foster
Ranch Hand
Posts: 135
9
Android Java Netbeans IDE
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic