data tables - prevent multiple update attempt

This commit is contained in:
John Woodlock
2012-09-28 14:57:21 +10:00
parent 7d57edd8e8
commit 344ed0ebab
@@ -208,6 +208,12 @@ public class ReadWriteNonCoreDataServiceImpl implements
if (grs.getData().size() == 0)
throw new DataTableNotFoundException(datatable, appTableId);
if (grs.getData().size() > 1)
throw new PlatformDataIntegrityException(
"error.msg.attempting.multiple.update",
"Application Table: " + datatable + " Foreign Key Id: "
+ appTableId);
String fkName = getFKField(getApplicationTableName(datatable));
String sql = getUpdateSql(grs, datatable, fkName, appTableId,
queryParams);