A specialized form of
org.compass.gps.device.jdbc.mapping.ResultSetToResourceMapping ,
mapping a specfic database table to a resource.
Since the mapping works against a table, most of the parameters can be
automatically generated. The required mappings are the alias name and the
table name. The settings that can be generated are the id mappings
(based on the table primary keys), the select query (based on the table
name), and the version query (based on the table name and the version column
mappings).
If no data column mappings are provided, the
indexUnMappedColumns from
org.compass.gps.device.jdbc.mapping.ResultSetToResourceMapping can be
user to auto map all the table columns as data columns.
For real time mirroring, at least one version column mapping (
org.compass.gps.device.jdbc.mapping.VersionColumnMapping )
is required. And the version query can be auto generated.
Note that the mapping will auto generate only settings that have not been
set. If, for example, the select query was set, it will not be generated.
author: kimchy |