summaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-21 18:06:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-21 19:25:06 +0200
commit5ff1382aeae38946889b1e09a21bde1c48475dfd (patch)
tree99af0e6a0992e4fd89c70b37425ba784927b73ba /odb
parent2043035eee4f8c0f3f896082651d3a5799e90ab8 (diff)
Generate auto_id constant even if id is in base
Diffstat (limited to 'odb')
-rw-r--r--odb/relational/header.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx
index 49a796f..0806042 100644
--- a/odb/relational/header.hxx
+++ b/odb/relational/header.hxx
@@ -965,6 +965,9 @@ namespace relational
os << "typedef object_traits< " << base << " >::id_type id_type;"
<< endl
+ << "static const bool auto_id = object_traits< " << base <<
+ " >::auto_id;"
+ << endl
<< "typedef object_traits< " << base << " >::id_image_type " <<
"id_image_type;"
<< endl;