[odb-users] Is there a way to persist an object to a specific table?

SS Narayanan nara at bvinetworks.com
Thu Oct 27 20:08:56 EDT 2011

Hi All,


I wanted to learn if there is a way to persist and object to a specific
table instead of the name of the table as the name of the object. For
example, if I have a class named person, I will do something similar to the


person john("John", "Doe", 33);

transaction t (db->begin());




The record is added to the table "person" in the DB. What is the way to add
the person record to another table, say "MyPerson"? And how do I create the
new table programmatically.



-          Nara

More information about the odb-users mailing list