Hello, I'currently trying to used Kotlin with Hibe...
# hibernate
y
Hello, I'currently trying to used Kotlin with Hibernate, and I've found one weird issue with a certain feature of Hibernate. Hibernate has a multi-tenancy feature, and while trying it out, I had an issue with function overrides from the
MultiTenantConnectionProvider
interface. The issue I'm having is with
isUnwrappableAs
and
unwrap
functions:
Copy code
class TenantSchemaConnectionProvider : MultiTenantConnectionProvider {
    override fun isUnwrappableAs(unwrapType: Class): Boolean {
        TODO("Not yet implemented")
    }

    override fun <T : Any?> unwrap(unwrapType: Class): T {
        TODO("Not yet implemented")
    }

    // the rest of the overrides
}
In this case, the compiler complains with the following error:
One type argument expected for class Class<T : Any!>
. I've tried changing the types to
Class<*>
and
Class<T>
respectively, but that just makes the compiler complain the the functions are not overriding anything, and that the class has missing overrides from the interface. Any idea how to solve this issue?