ubu
05/05/2021, 10:31 AMRoom
compiler when switching to Kotlin 0.1.5
?ubu
05/05/2021, 10:31 AMpersistence/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 messagesiamthevoid
05/05/2021, 11:01 AMubu
05/05/2021, 2:05 PMinterface 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)
}