Hello there, did you have any trouble with `Room` ...
# android
u
Hello there, did you have any trouble with 
Room
 compiler when switching to Kotlin 
0.1.5
?
persistence/dao/BaseDao.java:36: error: Not sure how to handle update method's return type. Currently the supported return types are void, int or Int.
this kind of error messages
i
show your base dao
u
Copy code
interface BaseDao<T> {
    /**
     * Insert an object in the database.
     *
     * @param obj the object to be inserted.
     */
    @Insert
    suspend fun insert(obj: T)

    /**
     * Insert an array of objects in the database.
     *
     * @param obj the objects to be inserted.
     */
    @Insert
    suspend fun insert(objects: List<T>)

    /**
     * Update an object from the database.
     *
     * @param obj the object to be updated
     */
    @Update
    suspend fun update(obj: T)

    /**
     * Delete an object from the database
     *
     * @param obj the object to be deleted
     */
    @Delete
    suspend fun delete(obj: T)
}