diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-17 09:03:29 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-21 11:47:14 +0200 |
commit | fdc9f349c4c9aa79d1a29b23f95fa439bff18498 (patch) | |
tree | f5ea6a0c07768c2aa89acd0770d939ca39fd010b /odb/relational/header.hxx | |
parent | f9326ec8f34fa9bfa7f8d7a97441ed1de1c5aece (diff) |
Generate object traits auto id flag for all databases
Diffstat (limited to 'odb/relational/header.hxx')
-rw-r--r-- | odb/relational/header.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx index 4c1421c..b0deeee 100644 --- a/odb/relational/header.hxx +++ b/odb/relational/header.hxx @@ -973,6 +973,9 @@ namespace relational { os << "typedef " << id->type ().fq_name (id->belongs ().hint ()) << " id_type;" + << endl + << "static const bool auto_id = " << + (id_member (c)->count ("auto") ? "true;" : "false;") << endl; os << "struct id_image_type" |