1 min readJul 27, 2018
Hi Andrzej!
Actually, you cannot have a Car
model inserted directly into the User
model, as you presented in your example, because Room doesn’t support object references. In this case you can only have a reference to the car (e.g. carId
) in your User object, or have a non-entity UserWithCar
class.