title: Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type
body: <p>I have a DB which has a custom data type <strong><code>FollowEntityType</code></strong> as a column.</p>
  <pre><code>@Entity(primaryKeys = arrayOf(&quot;id&quot;, &quot;type&quot;), tableName = &quot;follow_info&quot;)
  data class FollowInfoEntity(
          @ColumnInfo(name = &quot;id&quot;) var id: String,
          @ColumnInfo(name = &quot;type&quot;) var type: FollowEntityType,
  )
  </code></pre>
  <p>Since it is a custom data type, I have defined a type converter.</p>
  <pre><code>class FollowDatabaseTypeConverter {
  
      @TypeConverter
      fun toFollowEntity(entityType: String?): FollowEntityType? {
          return FollowEntityType.from(entityType ?: Constants.EMPTY_STRING)
      }
  
      @TypeConverter
      fun toString(entityType: FollowEntityType?): String? {
          return entityType?.name
      }
  }
  </code></pre>
  <p>This works fine and I am able to store/retrieve values in the DB. However, in one of the queries, the build fails.</p>
  <p>This is the query.</p>
  <pre><code>@Query(&quot;select * from follow_info where type in (:entityTypeList)&quot;)
  fun getFollowedEntitiesByType(entityTypeList: List&lt;FollowEntityType&gt;) : List&lt;FollowInfoEntity&gt;
  </code></pre>
  <p>The build fails with the following error.</p>
  <pre><code>Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type. You can consider adding a Type Adapter for this.
      java.util.List&lt;? extends FollowEntityType&gt; entityTypeList, @org.jetbrains.annotations.NotNull()
  </code></pre>
  <p>The error is for <strong>entityTypeList</strong> field, and according to the error, this type should be one of the columns in the DB. I already have <strong>FollowEntityType</strong> as one of the column types. I don't understand why it is failing. Please help me out as I am not finding any solution to solve this problem.</p>