geosolutions-it / geobatch

Open Source GeoSpatial Processing Simplified
GNU General Public License v3.0
22 stars 19 forks source link

[Actions - ds2ds] wrong PK creation when using JDBCDatastore #192

Closed Damianofds closed 11 years ago

Damianofds commented 11 years ago

When 2 tables are copyed with JDBCDatastore the primary key of the target table are incremental autogenerated due to a strange behaviour (Bug ?) of Geotools, see method getNextValue of the class JDBCDataStore .

As Immediate workaround in the DS2DS action check if the target datastore is instanceof JDBCDatastore and set the hints Hints.USE_PROVIDED_FID.