From 9b4f3f20d3878a10b4c6c21ded47ad5f74dfa8d3 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 3 Feb 2019 21:02:05 +0100 Subject: Dependencies upgrade. --- .../src/main/kotlin/pl/treksoft/kvision/types/Date.kt | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'kvision-modules/kvision-server-spring-boot/src/main/kotlin') diff --git a/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/types/Date.kt b/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/types/Date.kt index 57853c8b..86fab30a 100644 --- a/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/types/Date.kt +++ b/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/types/Date.kt @@ -21,12 +21,6 @@ */ package pl.treksoft.kvision.types -import com.github.andrewoma.kwery.mapper.SimpleConverter -import com.github.andrewoma.kwery.mapper.TableConfiguration -import com.github.andrewoma.kwery.mapper.reifiedConverter -import com.github.andrewoma.kwery.mapper.standardConverters -import com.github.andrewoma.kwery.mapper.util.camelToLowerUnderscore -import java.sql.Timestamp import java.text.SimpleDateFormat actual val KV_DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss" @@ -38,13 +32,3 @@ actual typealias Date = java.util.Date actual fun String.toDateF(format: String): Date = SimpleDateFormat(format).parse(this) actual fun Date.toStringF(format: String): String = SimpleDateFormat(format).format(this) - -object DateConverter : SimpleConverter( - { row, c -> Date(row.timestamp(c).time) }, - { Timestamp(it.time) } -) - -val kvTableConfig = TableConfiguration( - converters = standardConverters + reifiedConverter(DateConverter), - namingConvention = camelToLowerUnderscore -) -- cgit