The last few days of research on Android's persistence, a total of three frames have been studied, one is Ormlite, one is Hadi, and one is called Prueba
One of the most mature is ormlite, but also the most complex. The current version is 4.3.1
The second Hadi is a fairly simple overview of an open source framework, read all the code, simple and straightforward, but some bugs need to be fixed. For example, after inserting the object did not requery, if the inserted record has more than one default value, it will throw the interrupt
Three Prueba not how to study, using the demo, you need to configure a locked XML, identify a table, a field is from which version of the start, and automatically generate SQL statements
The final choice is ormlite, drawing a sequence diagram, wrote a multiple table query demo.
The sequence diagram is directly on the first one is created and the second is the query
Demo's download Address: http://download.csdn.net/detail/gdp2852/4023724