Czar
06/23/2017, 7:29 AMEnt(val id: Long?) : Persistable<Long?>
.
This of course requires to implement getId
and isNew
.
But when I try to implement getId
I have Platform declaration clash error;
if I don't implement it, I have Class Ent must be declared abstract or implement abstract method error.
What's the correct way to do this?ugurk
06/23/2017, 10:40 AMugurk
06/23/2017, 10:44 AMCzar
06/23/2017, 10:47 AMEnt
class?ugurk
06/23/2017, 10:47 AMugurk
06/23/2017, 10:47 AMclass Ent(private val id: Long) : Persistable<Long?>
ugurk
06/23/2017, 10:48 AMCzar
06/23/2017, 10:48 AMstrelok
06/26/2017, 6:46 AMclass Ent(val id:Long) : Persistable<Long> {
override fun isNew(): Boolean {
return false
}
override fun getId(): Long {
return this.id
}
}
Czar
06/30/2017, 8:25 AMLong?
not Long
and that does not compile.