August 2, 2011
Android ORM (Object Relational Management)
For quite some time I have been thinking about what a good ORM library should look like. I haven’t had any time to design and create it until now because of the university classes I’ve been teaching and supporting and completing the other QuickConnect Family projects. For the last couple of days, since school is now out for the summer, I have been making a cut at it.
I am very pleased. I have a very functional and easy to use implementation. It avoids the pitfalls that Hibernate made back in the day when it was designed and it avoids mistakes made by Apple when the created CoreData.
You don’t need any annotations. You don’t need any HQL like language for queries.
Even better it is only 16K in size! I was surprised but pleased at how little code was required.
It is untested at the moment but you can see what the code looks like if you download the source from sourceForge using git.
I hope to have an example working soon and want to create a GUI front end to make use even easier. This GUI will create your SQLite tables for you and put everything together you need in one jar file.