Youssef Habri
11/03/2023, 7:42 AMMultiTenantConnectionProvider
interface.
The issue I'm having is with isUnwrappableAs
and unwrap
functions:
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?