I have a problem with declaration with one of my fields in Object.
public class PhotoEntity {
   @SerializedName("mentions")
   public Array<Integer> mentions = new ArrayList<>();
   // Other fields
}
mentions - is a part of incoming JSON, looks like :
[120,55,32]
I have a question. How correctly make projection of ArrayList in SQL database?
In the best case, as I know - I need to create separate Table and setup foreign key, but in my case it not be applicable, because the structure of PhotoEntity directly related to JSON contract.
Aucun commentaire:
Enregistrer un commentaire