You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class User(id: EntityID<Int>) : IntEntity(id) {
companion object : IntEntityClass<User>(Users)
var name by Users.name
var city by City referencedOn Users.city
var age by Users.age
}
I have to repeat myself too much. I would like to be able to write:
class User(id: EntityID<Int>) : IntEntity<User>(id) {
companion object Users
var name by Users.name
}
I'm currently learning Kotlin and I understand the limitation that we can't use generic companion objects (meaning we have to rework the way the per-transaction caching works), so I'm curious if others more savvy might have ideas for how we could accomplish this. This is a pretty big refactor that I'm thinking of taking on but I was wondering if folks here might be receptive to it?
The text was updated successfully, but these errors were encountered:
From the Readme:
I have to repeat myself too much. I would like to be able to write:
I'm currently learning Kotlin and I understand the limitation that we can't use generic companion objects (meaning we have to rework the way the per-transaction caching works), so I'm curious if others more savvy might have ideas for how we could accomplish this. This is a pretty big refactor that I'm thinking of taking on but I was wondering if folks here might be receptive to it?
The text was updated successfully, but these errors were encountered: