Temporarily commented out TypeResolvers as they break BankingPersisterJson
This commit is contained in:
parent
187e009ac6
commit
dfdc7fd5c2
|
@ -9,11 +9,12 @@ import kotlin.reflect.KClass
|
||||||
|
|
||||||
open class JacksonJsonSerializer(
|
open class JacksonJsonSerializer(
|
||||||
protected val serializer: net.dankito.utils.serialization.ISerializer = net.dankito.utils.serialization.JacksonJsonSerializer { objectMapper ->
|
protected val serializer: net.dankito.utils.serialization.ISerializer = net.dankito.utils.serialization.JacksonJsonSerializer { objectMapper ->
|
||||||
val typeResolver = ObjectMapper.DefaultTypeResolverBuilder(ObjectMapper.DefaultTyping.OBJECT_AND_NON_CONCRETE)
|
// TODO: re-enable this to solve issue that in fints4kBankingClient only parent classes are serialized. But also take care off that BankingPersisterJson still works afterwards
|
||||||
typeResolver.init(JsonTypeInfo.Id.CLASS, JacksonClassNameIdResolver())
|
// val typeResolver = ObjectMapper.DefaultTypeResolverBuilder(ObjectMapper.DefaultTyping.OBJECT_AND_NON_CONCRETE)
|
||||||
typeResolver.inclusion(JsonTypeInfo.As.PROPERTY)
|
// typeResolver.init(JsonTypeInfo.Id.CLASS, JacksonClassNameIdResolver())
|
||||||
typeResolver.typeProperty("@CLASS")
|
// typeResolver.inclusion(JsonTypeInfo.As.PROPERTY)
|
||||||
objectMapper.setDefaultTyping(typeResolver)
|
// typeResolver.typeProperty("@CLASS")
|
||||||
|
// objectMapper.setDefaultTyping(typeResolver)
|
||||||
}
|
}
|
||||||
) : ISerializer {
|
) : ISerializer {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue