diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-16 10:57:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-16 10:57:32 +0200 |
commit | c4b6357a9908fb05261efa8764e5c8a6d8727b96 (patch) | |
tree | f08c518af05721cbee7f3738e66d97b905f02e87 /odb/relational | |
parent | 09d7377f81aeb8fde4aa1698e946457f03380d45 (diff) |
Implement soft delete for persistent classes
Diffstat (limited to 'odb/relational')
-rw-r--r-- | odb/relational/model.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/relational/model.hxx b/odb/relational/model.hxx index af88eb5..d4e1792 100644 --- a/odb/relational/model.hxx +++ b/odb/relational/model.hxx @@ -709,6 +709,9 @@ namespace relational if (abstract (c) && !polymorphic (c)) return; + if (deleted (c)) + return; + qname const& name (table_name (c)); // If the table with this name was already created, assume the |