title: Room Persistence: Error:Entities and Pojos must have a usable public constructor
body: <p>I'm converting a project to Kotlin and I'm trying to make my model (which is also my entity) a data class
  I intend to use Moshi to convert the JSON responses from the API</p>
  
  <pre><code>@Entity(tableName = "movies")
  data class MovieKt(
      @PrimaryKey
      var id : Int,
      var title: String,
      var overview: String,
      var poster_path: String,
      var backdrop_path: String,
      var release_date: String,
      var vote_average: Double,
      var isFavorite: Int
  )
  </code></pre>
  
  <p>I can't build the app cause of the following error</p>
  
  <blockquote>
    <p>Entities and Pojos must have a usable public constructor. You can have an empty constructor or a constructor whose parameters match the fields (by name and type).
    Cannot find setter for field.</p>
  </blockquote>
  
  <p>The examples I found are not far from <a href="https://github.com/KucherenkoIhor/Android-Architecture-Components/blob/master/app/src/main/java/com/ik/exploringviewmodel/entities/Repo.kt" rel="noreferrer">this</a></p>
  
  <p>Ideas on how to solve it?</p>