title: How to use parameter fields in Room @Query?
body: <p>I have a <code>User</code> class with a field <code>id</code>, so I wanted to run the following query with Room:</p>
  
  <pre><code>@Query("SELECT * FROM ticket where user_id = :user.id")
  LiveData&lt;Ticket&gt; loadFromUser(User user);
  </code></pre>
  
  <p>But I am getting error marks on Android Studio on <code>user.id</code> and all examples I find online only use the direct parameter of the <code>@Query</code> method, usually a <code>String</code> or an <code>int</code>.</p>
  
  <p>Is it possible to use an object's field in a Room <code>@Query</code>? If positive, so what's the proper way of referencing it.</p>