diff --git a/documentation-website/Writerside/topics/Data-Types.topic b/documentation-website/Writerside/topics/Data-Types.topic index fb4c468c0b..004a075834 100644 --- a/documentation-website/Writerside/topics/Data-Types.topic +++ b/documentation-website/Writerside/topics/Data-Types.topic @@ -914,6 +914,7 @@ class MealTimeNullTransformer : ColumnTransformer<LocalTime, Meal?> { override fun wrap(value: LocalTime): Meal? = when { + value.hour == 0 && value.minute == 0 -> null value.hour < 10 -> Meal.BREAKFAST value.hour < 15 -> Meal.LUNCH else -> Meal.DINNER @@ -928,7 +929,7 @@ } object Meals : Table() { - val mealTime: Column<Meal?> = time("meal_time").transform(MealTimeNullTransformer()) + val mealTime: Column<Meal?> = time("meal_time").nullTransform(MealTimeNullTransformer()) }