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

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?

CCNA 1 Final Exam 2011 latest (hot hot hot)

  Hi! I have been posted content of ccna1 final exam (latest and only question.) I will post the answer and insert image on sunday. If you care, please subscribe your email an become a first person have full test content. Subcribe now  Some question  have not content because this question have images content. So that can you wait for me? SUNDAY 1. A user sees the command prompt: Router(config-if)# . What task can be performed at this mode? Reload the device. Perform basic tests. Configure individual interfaces. Configure individual terminal lines. 2. Refer to the exhibit. Host A attempts to establish a TCP/IP session with host C. During this attempt, a frame was captured with the source MAC address 0050.7320.D632 and the destination MAC address 0030.8517.44C4. The packet inside the captured frame has an IP source address 192.168.7.5, and the destination IP address is 192.168.219.24. At which point in the network was this packet captured? leaving host A leaving ATL leaving...