On 07/20/10 15:09, Michael Angerman wrote: > Is this project Tiny ORM written by Shawn O. Pearce going to be > equivalent to > > Hibernate in Java > ActiveRecord in Ruby > Doctrine in PHP > > http://android.git.kernel.org/?p=tools/gwtorm.git;a=summary > > Does any one know if Google is working on an ORM for Android... > > What are the similarities and differences between Tiny ORM and the > above named projects ? > > Why are protocol buffers being used in the ORM, I do not understand > the relationship > between protocol buffers and ORM concepts. > > I found the above link by reading this blog post. > > http://mobilebytes.wordpress.com/2009/06/14/android-orm-coming/ > > I have been hearing rumblings about this, but was just curious if > anyone has any further information. > > Thanks, > Michael I Angerman -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en I believe the work Shawn Pearce is doing is not to run within Android, but to be an ORM that is part of Gerritt, the source code review system used by Android Open Source Project-- Gerritt is a big, server-hosted web app.
In general, I think it would be inappropriate to have a full-featured ORM running on Android. If you have lots of complex data to persist, it probably would be best to handle it server-side. If you have only a little complex data to persist, you probably can load it into RAM in one go so you don't need the full features of an ORM. If you want a simple mapping of Java objects to SQLite tables for Android apps, I'll toot my own horn here and suggest my (free, open-source, and slightly immature) sqlitegen (http://code.google.com/p/sqlitegen), which is an Eclipse plugin for Android that generates database code at compile time from annotated Java interfaces, where the generated code handles CRUD functions as well as Android-specific stuff like going to/from a ContentValues. Since sqlitegen does all its stuff at compile time, the apps using it are pretty efficient at runtime. If you search around, there are a few other lightweight tools for persisting objects on Android. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en