diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-08-14 09:37:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-25 06:47:21 +0200 |
commit | 55b36b8297ef9aac9e4ccc7b98f8649534ee0ac1 (patch) | |
tree | e9f0d22285d7fc9ad814b75eac9d587c6d630995 /odb/relational/inline.hxx | |
parent | 19ba3497c0788f02fc417f441d87c96ce23f9446 (diff) |
Implement bulk database operation support for Oracle and SQL Server
Diffstat (limited to 'odb/relational/inline.hxx')
-rw-r--r-- | odb/relational/inline.hxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/odb/relational/inline.hxx b/odb/relational/inline.hxx index ed10e09..76a6763 100644 --- a/odb/relational/inline.hxx +++ b/odb/relational/inline.hxx @@ -217,6 +217,7 @@ namespace relational using semantics::data_member; data_member* id (id_member (c)); + bool auto_id (id && auto_ (*id)); bool base_id (id && &id->scope () != &c); // Comes from base. data_member* optimistic (context::optimistic (c)); @@ -251,6 +252,20 @@ namespace relational { if (!poly_derived) { + // id (id_image_type) + // + if (auto_id) + { + os << "inline" << endl + << traits << "::id_type" << endl + << traits << "::" << endl + << "id (const id_image_type& i)" + << "{" + << "return object_traits_impl< " << class_fq_name (*base) << + ", id_" << db << " >::id (i);" + << "}"; + } + // id (image_type) // if (options.generate_query ()) |