In Room, we can make a query from DAO with fundamental data type like follow
@Query("SELECT * FROM Table WHERE name=:name)
fun fetchAll(name: String)
Is it possible to pass and object and use its property instead like following
@Query("SELECT * FROM Table WHERE name=:object.name)
fun fetchAll(object: ClassA)
I could not find anywhere saying how to do it, so i'm not sure if it is possible and how to do it. When I try it in Android Studio, it is indicating error