I wonder if there is any way to save instances of objects keeping all the relations self-consistent after loading them back.
The problem i see is that pointers would become corrupted after the objects being reloaded into memory. Is there a way to get over that? or do i have to write my own algorithms?

Thanks in advance