Objective-c - How to store objects in database SQLite
i'm curious to learn more about storing objects.
if i have an app that manage an office database where i have model object
like Department, Employee, Task. how can i store them in the database?
should i create a table for each model and store the primitive instance
values like name, id, surname ? or should i store the object itself?
which is the right approach??
to better understand: how an app like whatsapp or kik ( both
chat/messaging application ) store their data in their server? do they use
coredata or databases? do they save primitive values or objects?
thanks
No comments:
Post a Comment