i want to store an object in an sqlite database:
public class TimeObject {
long timeBegin;
long timeEnd;
long lastBeforePause;
long lastBeforeClosed;
int isPaused;
String timeReadable;
List<PauseObject> pauses;
}
Basically, storing this isn't a problem at all. But my question is, how do i store the list properly? Would it be reasonable to serialize the list and store it as a TEXT?
This is how a PauseObject looks like:
public class PauseObject {
long pauseBegin;
long pauseEnd;
long pauseLastBeforeClosed;
String pauseReadable;
}
I'm looking for a way that doesn't affect the performance of the application too much. Any help would be appreciated. Thanks in advance!