title: Had anyone success with using Room over multi-module Kotlin setup?
body: <p>Had anyone success with using Room over Android multi-module Kotlin setup.</p>
  
  <p><code>@Entity
  data class School(@Embedded val student: Student)
  data class Student(val age: Int = 0)</code></p>
  
  <p>Whenever I have both above classes in main module everything compiles properly.</p>
  
  <p>But if I move the <strong>Student</strong> class to another android library module and <strong>School</strong> in main module. It throws compile time error as:</p>
  
  <p><code>error: 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).
    Tried the following constructors but they failed to match:
    Student(int) : [arg0 : null]
  </code></p>
  
  <p><strong>Note</strong>: On debug found this might be <strong>name mangling</strong> issue. If I change the Student class to <code>data class Student(val arg0: Int = 0)</code> it compiles fine.
  Looks like at compile time <code>age</code> exposed as <code>arg0</code></p>
  
  <p>Any idea how to resolve this issue?</p>