请问是否可以将实体bean绑定到表的部分列?
例如:
表"A"有列id、col1、col2、col3、col4、col5、...、col10
但我只需要id、col1和col2,所以我创建了一个只包含这些字段的实体bean,并仅对这些字段进行绑定。但我尝试这样做时出现了以下错误:
Caused by: java.lang.IllegalStateException: Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number. You can simply fix this by increasing the version number.
请问是否有人能够确认使用Room Persistence Library是否可以进行上述绑定。
(注:为什么我的表中有一些未在移动应用程序中使用的列。这些表模式是服务器端某些表的精确副本,因此某些字段在服务器端Web应用程序中被使用)