greenrobot/greenDAO — pull request #64 by emmby (2012-12-23 23:47:39+00:00)
Title: Mburton/greendao 53 listadapter pullrequest

Fix for https://github.com/greenrobot/greenDAO/issues/53

Add a ListAdapter to GreenDao, based on https://groups.google.com/forum/?fromgroups=#!topic/greendao/vYTV2dd5aLw

To support stable ids based on the db row id, I also implemented a lightweight interface called HasId that contains a getId() method, and made sure that all generated entity objects implement this interface. This allows the listadapter to be sure that all objects that come back from the query have a getId() method that could be used to get the entity's id, for use in getItemId().