hunter
hunter
I have the same question.
> LitePal.saveAll方法能不能将判断是insert还是update改为用主键去判断? 从服务器拉取一堆数据集体保存时第一遍没问题,第二遍就报错啦SQLITE_CONSTRAINT_UNIQUE 你好 请问这个你有解决方案了吗?
public void onSaveAll(Collection collection) throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { if (collection != null && collection.size() > 0) { LitePalSupport[] array = collection.toArray(new LitePalSupport[0]); LitePalSupport firstObj = array[0]; String...