diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 11:29:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 11:29:05 +0200 |
commit | 3506ef645e4cd26aebb73f493001d584e4cce22a (patch) | |
tree | bfc53872849a256861903a21daa55ebf097f0f39 /inverse/README | |
parent | ab994fdada3eebc794d6b1686f55a35420e4d758 (diff) |
Make session optional
Diffstat (limited to 'inverse/README')
-rw-r--r-- | inverse/README | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/inverse/README b/inverse/README index 94b01a6..9b31fb7 100644 --- a/inverse/README +++ b/inverse/README @@ -26,14 +26,15 @@ employee.sql These files are generated by the ODB compiler from employee.hxx using the following command line: - odb -d <database> --generate-schema --generate-query \ + odb -d <database> --generate-schema --generate-query --generate-session \ --default-pointer std::tr1::shared_ptr employee.hxx Where <database> 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 |