Project

General

Profile

Feature #926

VersionedRecord's record key

Added by Elmer de Looff almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Elmer de Looff
Category:
Model
Target version:
Start date:
2012-08-22
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

The name for this key should default to the table name + ID.

This means that a record class Author(VersionedRecord) by default will have a record key authorID. If the developer provides another table name (for instance 'writer'), then the record key should change accordingly (in this case: writerID).

Associated revisions

Revision 286:2f239384878f (diff)
Added by Elmer de Looff almost 7 years ago

Expanded test suite for the database model significantly. Changed behaviour of VersionedRecord's key such that the default is the local table name + ID. Defining _RECORD_KEY overrides this behavior (tests have been added to verify this). This resolves #926.

History

#1 Updated by Elmer de Looff almost 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 70

Applied in changeset 2f239384878f.

#2 Updated by Elmer de Looff almost 7 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 70 to 100

This is done.

Also available in: Atom PDF