io.realm.exceptions.RealmException: Primary key field 'ArTime' cannot be changed after object was cr
来源:互联网 发布:mac mini 老款拆机 编辑:程序博客网 时间:2024/05/22 16:47
出现此问题的原因是:
我在这:
AlarmTable alarmTable = realm.createObject(AlarmTable.class, alarm.getArTime());
设置了主键。
又在这:alarmTable.setArTime(alarm.getArTime());
通过set()方法去设置主键。
所有提示我:主键不能修改了。
阅读全文
0 0
- io.realm.exceptions.RealmException: Primary key field 'ArTime' cannot be changed after object was cr
- setObjectForKey: object cannot be nil (key: av)'
- setObjectForKey: object cannot be nil (key: UIImagePickerControllerOriginalImage)
- field cannot be modified delphi
- codeforces The Meeting Place Cannot Be Changed
- B. The Meeting Place Cannot Be Changed
- B. The Meeting Place Cannot Be Changed
- B The Meeting Place Cannot Be Changed
- B. The Meeting Place Cannot Be Changed
- B. The Meeting Place Cannot Be Changed
- B. The Meeting Place Cannot Be Changed
- B. The Meeting Place Cannot Be Changed
- B. The Meeting Place Cannot Be Changed
- The Meeting Place Cannot Be Changed CodeForces
- The Meeting Place Cannot Be Changed
- The Meeting Place Cannot Be Changed
- Primary Key Importance for LOV View Object
- Field or property 'ROLE_USER' cannot be found on object of type 'org.springframework.security.web.ac
- 关于vue的那些小事
- Futures (based on version 22.0)
- python用urllib爬取百度
- blockingQueue
- Python 多线程 thread
- io.realm.exceptions.RealmException: Primary key field 'ArTime' cannot be changed after object was cr
- 约瑟夫
- HDU_【2017 Multi-University Training Contest 2】——1006 Funny Function
- 计算机为什么采用补码的形式存储数据?
- 简单发送邮件
- Linux 文件相关
- android BadgerView 提示小圆点
- Python 使用threading 模块创建线程
- EXTJS从选择记录中获取值