From 8e046e3ea7e88f872205c2b65cb7f9b86aaabd93 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Apr 2012 11:29:05 +0200 Subject: Make session optional --- odb/context.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/context.hxx') diff --git a/odb/context.hxx b/odb/context.hxx index cdb49ac..2bb91cb 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -381,6 +381,12 @@ public: } static bool + session (semantics::class_& c) + { + return c.get ("session"); + } + + static bool transient (semantics::data_member& m) { return m.count ("transient"); -- cgit v1.1