Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to store an Object into a SQLite database in Android?

I need some help to store a Object in an SQLite database using Android.I don't know whether it is possible or not.If it is possible means please give some code snippets to create a table which can store an object.

Regards, Rajapandian.K

like image 922
Rajapandian Avatar asked Aug 10 '09 12:08

Rajapandian


1 Answers

If you want to store a Java object, try with serialization and BLOB storing instead of creating an OR Mapping. Certainly storing serialized objects is not recommendable. There are a lot of well known cases where is a headache to work with those kind of designed databases.

like image 163
daniel Avatar answered Oct 23 '22 00:10

daniel