I have next requirement.
I have some model which I parse using Gson. I want to use the same model to store data in ORMLite database. I can't use foreign collection in this situation, because so I should create different fields for parsing and database. And I should create extra entities for every new field with List.
What is the best solution in my situation?
public class Model {
@SerializedName("listInteger")
@Expose
private List<Integer> listInteger;
}
|
|