[odb-users] abstract objects and the data member pragma 'table'
Boris Kolpackov
boris at codesynthesis.com
Wed Apr 1 06:55:29 EDT 2015
Hi Marcel,
Marcel Nehring <mne at qosmotec.com> writes:
> For example when I don't specify a custom name ODB generates the
> table name from the class name of the derived, non-abstract class
> and the member's name. What I would like is to have my custom name
> prefixed with the non-abstract class' name, for example. I would
> like to avoid the need to specify the custom name in each derived
> class.
While I can see how this can be useful, this is too much of an
inconsequential, corner case to add extra complexity to the
compiler. Perhaps you could use the --table-regex options to
detect your container tables and then process their names?
Boris
More information about the odb-users
mailing list