ROOM Cannot figure out how to save this field into database
问题 I need your help. I try to find the solution without deserialize but I didn't find nothing. It would be nice if you can help me... So I have this following JSON file "resources": [{ "id": 441988, "name": "TVA", "parent": { "id": 159 }, }, { "id": 441900, "name": "Marketing", "parent": { "id": 166 }, }] I used ROOM to create a database, it works but I have one problem, its impossible to save "id of Parent object" here is my following code : @Entity(tableName = "resources") class CategoryBean {