I have the following override of method on hashCode in AbstractORM class:
hashCode
AbstractORM
var _id = Random().nextLong() override fun getId() = _id
Overriding the hashCode() function, as m0skit0 suggested, worked for me. I implemented this:
hashCode()
override fun hashCode() : Int = id.toString().hashCode()
My Kotlin compiler setting in AndroidStudio is :