litesuits / android-lite-orm

LiteOrm is a fast, small, powerful ORM framework for Android. LiteOrm makes you do CRUD operarions on SQLite database with a sigle line of code efficiently.
http://litesuits.com?form=gorm
Apache License 2.0
1.49k stars 361 forks source link

请问要如何保存基础数据集合呢?例如ArrayList<String>类型? #62

Open guuguo opened 7 years ago

guuguo commented 7 years ago

请问要如何保存级联的基础数据集合呢? 就比如ArrayList

guuguo commented 7 years ago

我发现我失败的原因是因为我搞了

    @Mapping(Relation.OneToMany)
    var characters: ArrayList<String>? = ArrayList<String>()

标注@ignore就可以保存了。 但是请问要如何保存级联的基础数据集合呢? 就比如ArrayList<String>