| #define SQT_COLUMN_ACCESSOR_DEFAULT | ( | COLUMN_NAME, | |
| GETTER, | |||
| SETTER, | |||
| DEFAULT_VALUE ) |
Defines a column with a default value that binds to the specified accessor methods of the entity type.
| COLUMN_NAME | The name of the column in the database. It will be also used as the instance name of the column. |
| GETTER | A const member function of the entity type that retrieves the column value from an entity instance. |
| SETTER | A non-const member function of the entity type that assigns the column value to an entity instance. |
| DEFAULT_VALUE | The default value of the column. |
This macro is similar to the SQT_COLUMN_ACCESSOR macro, except that it allows specifying a default value for the column.
Example usage: