diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-08-23 11:52:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-08-23 11:52:05 +0200 |
commit | 2842ac773c779b6bd8298a34320076a8c5ca77ee (patch) | |
tree | daa8cbd135553bf76546a34709e8ed002c437b9e /NEWS | |
parent | 3d643f17ae30d1a3c49f9bf3968f706898bea842 (diff) |
Document new accessor/modifier functionality
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,5 +1,21 @@ Version 2.1.0 + * ODB compiler is now capable of automatically discovering accessor and + modifier functions for inaccessible data members in persistent classes, + composite value types, and views. It will then use these accessors and + modifiers in the generated code. The names of these functions are derived + from the data member names and by default the ODB compiler will look for + names in the form: get_foo/set_foo, getFoo/setFoo, getfoo/setfoo, and + just foo. You can also add custom name derivations with the + --accessor-regex and --modifier-regex ODB compiler options. For more + information, refer to Section 3.2, "Declaring Persistent Objects and + Values" in the ODB manual. + + * New pragmas, get, set, and access, allow the specification of custom + accessor and modifier expressions for data members in persistent classes, + composite value types, and views. For more information, refer to Section + 12.4.5, "get/set/access" in the ODB manual. + * Support for defining database indexes. Both simple and composite indexes can be defined with support for database-specific index types, methods, and options. For more information, refer to Section 12.6, "Index Definition |