From 72951cb80852683bdd2707031471580620733e2f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 19 Jul 2011 13:42:18 +0200 Subject: New design for NULL semantics Now, instead of being specified as part of the SQL type with the type pragma, there are separate null and not_null pragmas. The not_null pragma was used to control NULL-ness of object pointers. Now the two pragmas are used consistently for object pointers and simple values (and in the future will work for composite values and containers). --- inverse/employee.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inverse') diff --git a/inverse/employee.hxx b/inverse/employee.hxx index 915b561..8c10e34 100644 --- a/inverse/employee.hxx +++ b/inverse/employee.hxx @@ -84,7 +84,7 @@ private: #pragma db id std::string name_; - #pragma db not_null inverse(employer_) + #pragma db value_not_null inverse(employer_) employees_type employees_; }; @@ -172,7 +172,7 @@ private: #pragma db id std::string name_; - #pragma db not_null inverse(projects_) + #pragma db value_not_null inverse(projects_) employees_type employees_; }; @@ -268,7 +268,7 @@ private: #pragma db not_null lazy_shared_ptr position_; - #pragma db not_null unordered + #pragma db value_not_null unordered projects_type projects_; }; -- cgit v1.1