diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-28 07:52:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-28 07:52:50 +0200 |
commit | c1f534db5d6bc29f9be0e7498e4971c7132d013a (patch) | |
tree | 198aef1cf6a2b84b929fbd54274875448f7e9a2e /odb/relational/model.hxx | |
parent | c4b6357a9908fb05261efa8764e5c8a6d8727b96 (diff) |
Support for added and deleted data member pragmas
Diffstat (limited to 'odb/relational/model.hxx')
-rw-r--r-- | odb/relational/model.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/relational/model.hxx b/odb/relational/model.hxx index d4e1792..e345f83 100644 --- a/odb/relational/model.hxx +++ b/odb/relational/model.hxx @@ -102,6 +102,9 @@ namespace relational virtual bool traverse_column (semantics::data_member& m, string const& name, bool) { + if (deleted (member_path_)) + return false; + string col_id (id_prefix_ + (key_prefix_.empty () ? m.name () : key_prefix_)); @@ -230,6 +233,9 @@ namespace relational using sema_rel::column; using sema_rel::foreign_key; + if (deleted (member_path_)) + return; + // Ignore inverse object pointers. // if (inverse (m, key_prefix_)) @@ -488,6 +494,9 @@ namespace relational using sema_rel::column; + if (deleted (member_path_)) + return; + // Ignore inverse containers of object pointers. // if (inverse (m, "value")) |