Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package org.ktorm.jackson
import com.fasterxml.jackson.databind.JavaType
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.KotlinModule
import com.fasterxml.jackson.module.kotlin.kotlinModule
import org.ktorm.schema.*
import java.lang.reflect.InvocationTargetException
import java.sql.PreparedStatement
Expand All @@ -31,7 +31,7 @@ import java.sql.Types
*/
public val sharedObjectMapper: ObjectMapper = ObjectMapper()
.registerModule(KtormModule())
.registerModule(KotlinModule())
.registerModule(kotlinModule())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be the following?
.registerModule(KotlinModule.Builder().build())

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arnodenuijl , could you check the answer from @k163377 and review again?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. Sadly it's not mine to merge. I just commented because I had the same issue and didn't understand the fix. But it's not my repo and I don't have any rights on it.

.registerModule(JavaTimeModule())

/**
Expand Down