From bf5fd384106855af1a8bd7a84fa3a0681d9c0592 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 24 Sep 2023 09:05:13 +0200 Subject: [PATCH] Changed type of eva to Int --- .../de/twomartens/timetable/bahnApi/model/db/BahnStation.kt | 2 +- .../de/twomartens/timetable/bahnApi/model/dto/BahnStation.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt b/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt index d49257a..adac075 100644 --- a/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt +++ b/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt @@ -12,7 +12,7 @@ import java.time.Instant @Document data class BahnStation( @TextIndexed var name: String, - @Indexed(unique = true) var eva: String, + @Indexed(unique = true) var eva: Int?, var ds100: String, var db: Boolean ) { diff --git a/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/dto/BahnStation.kt b/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/dto/BahnStation.kt index a89d424..d3862dc 100644 --- a/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/dto/BahnStation.kt +++ b/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/dto/BahnStation.kt @@ -9,11 +9,11 @@ data class BahnStation( @field:XmlAttribute var name: String, @field:XmlAttribute - var eva: String, + var eva: Int?, @field:XmlAttribute var ds100: String, @field:XmlAttribute var db: Boolean ) { - constructor(): this("", "", "", true) + constructor(): this("", null, "", true) } \ No newline at end of file