Skip to content
a demo of MyBatis and Kotlin
Kotlin Groovy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
Readme.org
build.gradle
gradlew
gradlew.bat
settings.gradle

Readme.org

MyBatis and Kotlin

A simple demonstration of using MyBatis and Kotlin in relation to java.sql.Timestamp and java.time.LocalDateTime.

TL;DR: You need a constructor to convert between the Timestamp and LocalDateTime:

constructor( gameId: Int,
              name:String,
              bggId :Int ,
              sqlTimestamp: Timestamp): this(gameId,name,bggId,sqlTimestamp.toLocalDateTime())
You can’t perform that action at this time.