Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which java ORM is suitable for android OS and support lazy list? [closed]

I wanna choose a best and suitable ORM library for android to use in my app. I know about GreenADO and ORMLite but not a lot.

Could you compare between them and mention advantages/disadvantages of them? And also tell which one support lazy list?

Thanks

like image 577
NrNazifi Avatar asked Jul 18 '12 08:07

NrNazifi


1 Answers

I use GreenDAO, because of its rapidity (see performance). It's easy to use and you can do very easily lazyLoading. ORMLite has a bigger community I think but seems slower.

About lazy-loading, in ORMLite you have to use DAO.iterator(Query) which returns an iterator, so you need a custom adapter. With greendao, you can use Query.lazyList(), which returns a list.

I would suggest you to go to GreenDAO.

like image 93
AMerle Avatar answered Sep 30 '22 04:09

AMerle