[odb-users] Persistence of pointers

Boris Kolpackov boris at codesynthesis.com
Wed Feb 13 09:26:57 EST 2013


Hi Joseph,

Joseph Hesse <joehesse at gmail.com> writes:

> class X
> {
> // ...
> };
>
> class Y
> {
> // ...
> X *p;
> // ...
> };
>
> Can I save X, Y objects so the pointer relationship is maintained?

Yes, you can. See Chapter 6, "Relationships" in the ODB manual for
more on how to do this:

http://www.codesynthesis.com/products/odb/doc/manual.xhtml#6

Boris



More information about the odb-users mailing list