I have a VideoList object that I want to save using the room library, but when I try to use @Embedded with an open list List = null; it gives me the error below: Error: (23, 24) error: Unable to figure out how to save this field in the database. You might consider adding a type converter to it.
The VideoList class is as follows.
@Entity public class VideoList { @PrimaryKey public String id; public String title; public String viewType; public Integer sortingOrder = null; public String componentSlug; public String endPoint = null; @Embedded public List<Video> list = null; public boolean hidden = false; } Any suggestions?
java android database sqlite android-database
Amit patel
source share