Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to handle lists in cupboard (android library)

Cupboard (https://bitbucket.org/qbusict/cupboard) is a very convinient library, but unfortunately it does not support mapping lists to the database and lists need to be handled by hand. But what is the way to handle them?

like image 984
TpoM6oH Avatar asked Nov 21 '14 02:11

TpoM6oH


1 Answers

You can let Cupboard to the serializing for you by using a FieldConverter. I've recently released the cupboard-tools project that contains a FieldConverter that uses Gson to serialize and deserialize lists or other objects.

like image 153
botteaap Avatar answered Oct 31 '22 10:10

botteaap