1
I am creating a Sqlite Database and I have 2 tables, a LIST table and other PRODUCTS.
The LIST table beyond the fields ID numeric
, NOME text
, has a PRODUCTS ARRAYLIST.
Already the PRODUCTS table only has ID numeric
, NOME text
, IMAGEM drawable
.
My question is how to create the LIST table in Sqlite, if SQLITE types allowed do not include Arraylists?
It seems to me that you are trying to turn classes into tables. This doesn’t work. You have to adapt. The question is a little confusing, as much as I want to help, I can’t because I don’t understand exactly what you’re doing, I don’t have enough information, and I don’t know what your real doubt is. If you get better, I’ll answer.
– Maniero
@bigown, I’m making an app, in which each list contains a set of products and in which the user can always add more products, hence the question of the array. Your suggestion is that instead of having an array have only the PRODUCT ID in the LIST table (in addition to what I already have, list ID and List name)? I could explain myself?
– porthfind
Unfortunately we can not understand the problem you are having, the information is very truncated. It might help if you put the application code, the Sqlite structure.
– Maniero