One-to-many relation in Room : <p>I've been using SugarDB for most of my projects in the past. It was easy to use and satisfied most of my requirements but since that project has been abandoned,  decided to look at alternatives and Room seems like the best option.</p>

<p>However, some basic things are quite confusing in Room. My Object uses Gson to populate data from a webservice, and as such as links to other objects. As an example, consider the classes below:</p>

<pre><code>@Entity
public class TestModel
{
    @PrimaryKey(autoGenerate = true)
    private int id;
    private String name;
    private String age;
    private List&lt;Book&gt; issuedBooks;
}

public class Book
{
    private String title;
    private int ISBN;
}
</code></pre>

<p>Now if my first class is annotated as the Entity, will this automatically treat classes referenced inside it as entities as well?</p>

<p>If I save an object of TestModel, will it save the list of Books with it to the database?</p>
