From 1f2834e458c4c28fe3264968a80f451636c232e4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 22 Feb 2012 12:28:06 +0200 Subject: Add support for composite object ids New pragma id_type (member). New test: common/composite-id. The composite example has also been updated. --- composite/README | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'composite/README') diff --git a/composite/README b/composite/README index e33e7a9..2368784 100644 --- a/composite/README +++ b/composite/README @@ -1,16 +1,17 @@ This example shows how to use composite value types as data members in objects -and other value types, as element types in containers, and as base types for -other composite value types. It also shows how to use composite value type -data members in queries. +(including as object id members) and other value types, as element types in +containers, and as base types for other composite value types. It also shows +how to use composite value type data members in queries. The example consists of the following files: person.hxx - Header file defining the 'basic_name', 'name_extras', and 'name' composite - value types. It also defines the 'phone_numbers' composite value type as - an instantiation of the 'std::pair' class template. Finally it defines - the 'person' persistent class which uses the 'name' and 'phone_numbers' - value types in its data members. + Header file defining the 'basic_name', 'name_extras', 'name', and + 'email_address' composite value types. It also defines the 'phone_numbers' + composite value type as an instantiation of the 'std::pair' class template + Finally it defines the 'person' persistent class which uses 'email_address' + as its object id as well as 'name' and 'phone_numbers' in its other data + members. person-odb.hxx person-odb.ixx -- cgit v1.1