[odb-users] One-to-many relationship in composite primary key

Boris Kolpackov boris at codesynthesis.com
Tue Feb 2 08:20:07 EST 2021

Andrea Pappacoda <andrea at pappacoda.it> writes:

> I have two entities, school and class. School has a simple primary key
> (id), while class has a primary key composed by a name and a reference
> to its school.
> [...]
> How can I implement this with ODB?

You can achieve this with a bit of effort as described in this earlier


Note: points_to is only available in the 2.5.0 pre-release:


More information about the odb-users mailing list