title: Java android ROOM get object with detais
body: <p>I have this :</p>
  
  <pre><code>    @Entity(tableName = "director"/*,
              indices = {@Index(value = "full_name", unique = true)}*/)
      public class Director {
          @PrimaryKey(autoGenerate = true)
          @ColumnInfo(name = "did")
          public int id;
          @ColumnInfo(name = "full_name")
          @NonNull
          public String fullName;
  
  
  @Entity(tableName = "movie",
          foreignKeys = @ForeignKey(entity = Director.class,
                  parentColumns = "did",
                  childColumns = "directorId",
                  onDelete = ForeignKey.CASCADE),
          indices = {@Index("title"), @Index("directorId")})
  public class Movie {
      @PrimaryKey(autoGenerate = true)
      @ColumnInfo(name = "mid")
      public int id;
      @ColumnInfo(name = "title")
      @NonNull
      public String title;
      @ColumnInfo(name = "directorId")
      public int directorId;
  </code></pre>
  
  <p>Amd when I get all movies I get director id . What I should to do to generate this :</p>
  
  <pre><code>public class MovieWithDirector {
  
      Movie movie;
      Director director;
  }
  </code></pre>
  
  <p>I can get a user and later get directerByID but I don not now if this is a the best way to do this</p>