I made some class that contain some memeber variables.
And I should to link this class with other class like this :
Hashtable<Class1 , ArrayList<Class2>>
I want to store this Hashtable in SQLite on Android. I consider serialization, Byte stream, but not sure can it possible to my own class.
Some people said that using JSON object. Are the JSON or XML creation is only solution??
Thanks in advance : )
You could use JSON or XML, but if you want to run queries on the database, creating tables would be better. If Class1 and Class2 items are stored in tables, the hashtable corresponds to a junction table with columns like Class1_ID and Class2_ID.