/mybatis-kotlin-demo

a demo of MyBatis and Kotlin

Primary LanguageKotlin

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())