I have a class entity as below
@Entity
public class Task {
private String name;
private Integer ParentId;
private Integer userId;
@Ignore
You should move the @Ignore field outside of the constructor, like this:
Sample data:
@Entity(primaryKeys = ["id"])
data class User(
@SerializedName("id")
val id: Int,
@SerializedName("name")
val name: String,
@SerializedName("age")
val age: Int
) {
@Ignore
val testme: String?
}
Refer github discussion for more details