aboutsummaryrefslogtreecommitdiff
path: root/composite/README
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-02-22 12:28:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-02-22 12:28:06 +0200
commit1f2834e458c4c28fe3264968a80f451636c232e4 (patch)
treeca5d05879fd3fb24afca9b2f2780955a114ce501 /composite/README
parent8a17d4e73d956ba6d95ffb685760d821bf185a3c (diff)
Add support for composite object ids
New pragma id_type (member). New test: common/composite-id. The composite example has also been updated.
Diffstat (limited to 'composite/README')
-rw-r--r--composite/README17
1 files changed, 9 insertions, 8 deletions
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