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