Skip to main content

Is Hibernate an overkill for an Android application?



I'm looking for a good ORM for my android application and at first glance it seems like for a mobile device I would prefer to use something simpler maybe. The thing is I'm just assuming here with no real evidence, so I thought I would ask the community's opinion (maybe there's is someone that has been through the experience). It is a fairly large(for mobile) application and will be run on a dedicated tablet.





What does everyone else think ? Is Hibernate too much for an android application ? Will there be performance problems ?





What would you use instead if you think it is too much ?





I am aware there are other questions asking for alternatives, but I decided to ask since most of those questions simply assumed it was an overkill and asked for other options and I started wondering "Is it really and overkill ? Why ?" Due to my lack of experience I simply think it it, but can't really provide an answer if I'm asked to explain why. Is it performance ? Is it too much configuration (Which I don't mind) ?





Thanks!



Source: Tips4all

Comments

  1. Just for posterity, I'd like to recommend ORMLite. It was designed to be much less heavy compared to Hibernate (and iBatis). I think that Hibernate is too much for Android applications -- especially considering the size of the code and the number of dependencies.


    http://ormlite.com/sqlite_java_android_orm.shtml


    The Android port of ORMLite makes direct calls to the Android database API. A number of applications have been delivered using ORMLite successfully. Hibernate provides a number of features that cannot be supported by the Android database calls so you will be paying for complexity that you cannot even use. I'm also not sure it has a native Android backend. Using SQLite over JDBC is not officially supported by Android and I was unable to get it to work reliably.

    ReplyDelete
  2. Yes it is & others have searched for alternatives.

    Read here:


    portable lightweight java orm framework for android
    Any Good ORM tools for Android development?
    Light weight alternative to Hibernate?


    Pick yours. :-)

    ReplyDelete
  3. There are quite a few questions similar to yours already. Start with:


    ORM on android SQLite and database scheme
    Any Good ORM tools for Android development?
    Light weight alternative to Hibernate?
    Are there any good ORMs (preferably JPA implementations) that support SQLite (on Android)?
    Higher level database layer for Android?
    Android object handling / persistence


    though some of those questions might be outdated by now.

    ReplyDelete

Post a Comment

Popular posts from this blog

[韓日関係] 首相含む大幅な内閣改造の可能性…早ければ来月10日ごろ=韓国

div not scrolling properly with slimScroll plugin

I am using the slimScroll plugin for jQuery by Piotr Rochala Which is a great plugin for nice scrollbars on most browsers but I am stuck because I am using it for a chat box and whenever the user appends new text to the boxit does scroll using the .scrollTop() method however the plugin's scrollbar doesnt scroll with it and when the user wants to look though the chat history it will start scrolling from near the top. I have made a quick demo of my situation http://jsfiddle.net/DY9CT/2/ Does anyone know how to solve this problem?

Why does this javascript based printing cause Safari to refresh the page?

The page I am working on has a javascript function executed to print parts of the page. For some reason, printing in Safari, causes the window to somehow update. I say somehow, because it does not really refresh as in reload the page, but rather it starts the "rendering" of the page from start, i.e. scroll to top, flash animations start from 0, and so forth. The effect is reproduced by this fiddle: http://jsfiddle.net/fYmnB/ Clicking the print button and finishing or cancelling a print in Safari causes the screen to "go white" for a sec, which in my real website manifests itself as something "like" a reload. While running print button with, let's say, Firefox, just opens and closes the print dialogue without affecting the fiddle page in any way. Is there something with my way of calling the browsers print method that causes this, or how can it be explained - and preferably, avoided? P.S.: On my real site the same occurs with Chrome. In the ex