Differences between revisions 1 and 2
Revision 1 as of 2006-09-14 02:08:47
Size: 1021
Editor: adsl-75-35-1-170
Revision 2 as of 2009-09-20 22:48:13
Size: 1021
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Convention over Configuration


Convention Over Configuration (CoC), as it is defined in wikipedia, it’s defined as “the programmer only needs to specifically configure what is unconventional.”

Below you can find a list of conventions supported by DAS.

ID Column

Currently, in the absence of otherwise conflicting, explicit configuration, we assume that any DO property named "id" will map to a primary key column in the database. Likewise a property name of the form "x_id" maps to a foreign key column that references some row in table "x".

OCC - Optimistic concurrency control (http://en.wikipedia.org/wiki/Optimistic_locking)

For "collision" properties, any DO property with the name "occ_count" will be assumed to map to an integer table column that is used for optimistic concurrency control. This column will then be used to overqualify any related UPDATE statements for that table. In the future, we may want to add support for "occ_timestamp", etc.

Tuscany/TuscanyJava/DAS_Java_Overview/convention_over_configuration (last edited 2009-09-20 22:48:13 by localhost)