mp
09/01/2020, 10:11 AMsealed class A {
abstract val a: Int
data class B(val b: String, override val a: Int) : A()
data class C(val c: Boolean, override val a: Int) : A()
}
persist those B,C classes to single table, with nullable b and c fields - make it any sense from exposed point of view?
I’ve tried to google some samples for this but without success. thats why interesting to ask about it( maybe this idea some example of sick imagination of mine 😃)tapac
09/03/2020, 7:56 AMmp
09/03/2020, 9:19 AM