wood burning stoves 2.0*
The moose likes Android and the fly likes ORM for Android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "ORM for Android" Watch "ORM for Android" New topic
Author

ORM for Android

Sahil Reddy
Ranch Hand

Joined: Jan 24, 2011
Posts: 145
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
Marshal

Joined: Mar 22, 2005
Posts: 41062
    
  43
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.


Ping & DNS - my free Android networking tools app
Sahil Reddy
Ranch Hand

Joined: Jan 24, 2011
Posts: 145
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
Marshal

Joined: Mar 22, 2005
Posts: 41062
    
  43
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

Joined: Jun 21, 2012
Posts: 16
Try "GreenDao"........
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ORM for Android
 
Similar Threads
Android - Memory
lightweight orm mapper
Newbie - Best practice for a new .db ?
Column Mapping Resultset DATE TIME
ORM for Android