• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ORM for Android

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try "GreenDao"........
 
Ranch Hand
Posts: 56
Python Windows Vista Flex
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Personally,
https://github.com/bytor99999/AndroidSQLLiteOrm
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Ranch Hand
Posts: 271
15
Android Angular Framework Spring AngularJS Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic