title: Room error: Not sure how to handle insert method's return type
body: <p>I don't get it, I though this is the way to get the id of newly inserted row.</p>
  
  <p><strong>DAO</strong></p>
  
  <pre><code>@Dao
  public interface AlarmDao {
  
      .....
  
      @Insert(onConflict = OnConflictStrategy.REPLACE)
      long insertAll(AlarmEntity...alarms); //used long instead of void
  }
  </code></pre>
  
  <p><strong>ENTITY</strong></p>
  
  <pre><code>@Entity(tableName = "tb_alarm")
  public class AlarmEntity {
  
      @PrimaryKey(autoGenerate = true)
      private long id;
  
      ...
  
      public long getId(){
          return this.id;
      }
  }
  </code></pre>
  
  <p>but building is failed and I'm getting error which is pointing into my <code>Dao</code> class and the error is: </p>
  
  <blockquote>
    <p>error: Not sure how to handle insert method's return type.</p>
  </blockquote>
  
  <p>What did I missed about it?</p>