[odb-users] can I using one object class map to multi table?

Boris Kolpackov boris at codesynthesis.com
Wed Jan 7 04:38:50 EST 2015


newzai.chen <newzai.chen at anchormobile.com> writes:

> 1. each table schema is the same.
> 2. each object when persist\update\erase\load  pass  table name to
> odb connection.

No, each persistent object is mapped to a fixed (in the generated
code) table. The only way to achieve kind of what you want is to
switch default schema (aka namespace) on the connection (if your
database supports schemas) or to use different databases.


More information about the odb-users mailing list