From 09d7377f81aeb8fde4aa1698e946457f03380d45 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 6 May 2013 12:05:39 +0200 Subject: Add support for object sections Sections are an optimization mechanism that allows the partitioning of data members of a persistent class into groups that can be separately loaded and/or updated. --- odb/relational/oracle/source.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'odb/relational/oracle') diff --git a/odb/relational/oracle/source.cxx b/odb/relational/oracle/source.cxx index a0ef339..2fc2ad2 100644 --- a/odb/relational/oracle/source.cxx +++ b/odb/relational/oracle/source.cxx @@ -546,6 +546,18 @@ namespace relational }; entry container_traits_; + struct section_traits: relational::section_traits, context + { + section_traits (base const& x): base (x) {} + + virtual void + init_value_extra () + { + os << "st.stream_result ();"; + } + }; + entry section_traits_; + struct class_: relational::class_, context { class_ (base const& x): base (x) {} -- cgit v1.1