Persistence on Android using ORMlite


Everyone knows the hassle of persisting objects to relational databases. Who hasn’t spent hours, days and (let’s be honest) weeks fighting object-relational mappers? It apparently is a hard and time consuming task, often times a real pain in the a** and subject to critic and hate. There are plenty good ORM mapping tools out there. JPA, Hibernate, you name it.


In this post I will present you a simple lightweight one to use with your Android projects: ORMlite for Android. I recently used it in one of my open source Android projects and it’s quite simple to use. I will use that project as an example and give you a step-by-step introduction on how to use ORMlite to easily store your data in a SQLite database on Android.

Read more