public int updateAll(GenericEntity entity) throws GenericEntityException {
ModelEntity modelEntity = entity.getModelEntity();
if (modelEntity == null) {
throw new GenericModelException("Could not find ModelEntity record for entityName: " + entity.getEntityName());
}
return customUpdate(entity, modelEntity, modelEntity.getNopksCopy());
}