Project stORM: An Open Source ORM for SQLite on Android

When David Chandler joined the Android team at Google, he immediately found himself unhappy with the available Object Relational Mapping tools available to him. So naturally, he made his own, and previewed it at an SF Android Usergroup Meetup.
Chandler describes "Project stORM" as “A new offering that aims for a streamlined developer experience (only two annotations required) and solid performance (preferring code generation over reflection). stORM is extensible, minimally intrusive, and offers built-in CSV backup / restore capabilities to facilitate database version upgrades.”
David has asked us to add this note to the talk:

Revised setup instruction:

1. Add storm-api.jar to your project's libs/ folder. It's no longer necessary to export it.
2. Add storm-apt.jar to the annotation factory classpath (as before).

Code improvements:

  • Enums are now supported.
  • The generated DatabaseFactory class now properly implements the singleton in a thread-safe way, so getDatabaseHelper() can safely be called from another thread such as an AsyncTask.
  • SQLiteDAO base class now properly closes the Cursor wherever it can.