Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.
The following page has been changed by KevinWilliams: http://wiki.apache.org/ws/Tuscany/TuscanyJava/DAS_Java_Overview/RDBDAS_Java_User_Guide/Convention_over_configuration ------------------------------------------------------------------------------ This concept reflects the notion that configuration (defining a bunch of stuff in a side file) can be avoided by following convetion (adhering to prescribed patterns) and that this is generally a good thing. The RDB DAS has several reasonable conventions in place and using these can significantly reduce a developers work-load. - As an example, the RDB DAS must know how a !DataObject's properties map to a database table key in order to generate the INSERT/UPDATE and DELETE statements necessary to flush a data graphs to a database. In typical Object/Relational mappings frameworks, this information is provided in a config file with something like this: + As an example, the RDB DAS must know how a !DataObject's properties map to a database table key in order to generate the INSERT/UPDATE and DELETE statements necessary to flush a data graph's changes to a database. In typical Object/Relational mappings frameworks, this information is provided in a config file with something like this: {{{ <Table tableName="COMPANY"> @@ -15, +15 @@ </Table> }}} + One convention the RDB DAS understands is that if a !DataObject has a property named "ID" then it can assume that the property maps to a key column in the database. So, if a developer follows this convention (naming key columns in database tables "ID") then this key-mapping information need not be specified in a configuration file. + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
