From 3506ef645e4cd26aebb73f493001d584e4cce22a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Apr 2012 11:29:05 +0200 Subject: Make session optional --- relationship/README | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'relationship/README') diff --git a/relationship/README b/relationship/README index f3e4e9c..dd9f085 100644 --- a/relationship/README +++ b/relationship/README @@ -22,14 +22,15 @@ employee.sql These files are generated by the ODB compiler from employee.hxx using the following command line: - odb -d --generate-schema --generate-query \ + odb -d --generate-schema --generate-query --generate-session \ --default-pointer std::tr1::shared_ptr employee.hxx Where stands for the database system we are using, for example, 'mysql'. - The --default-pointer option is used to make TR1 shared_ptr the default - object pointer. + The --generate-session option is used to enable session support for all + the persistent classes in employee.hxx. The --default-pointer option is + used to make TR1 shared_ptr the default object pointer. database.hxx Contains the create_database() function which instantiates the concrete -- cgit v1.1