mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
Changed to text index for name
This commit is contained in:
+2
-1
@@ -5,12 +5,13 @@ import org.springframework.data.annotation.CreatedDate
|
||||
import org.springframework.data.annotation.Id
|
||||
import org.springframework.data.annotation.LastModifiedDate
|
||||
import org.springframework.data.mongodb.core.index.Indexed
|
||||
import org.springframework.data.mongodb.core.index.TextIndexed
|
||||
import org.springframework.data.mongodb.core.mapping.Document
|
||||
import java.time.Instant
|
||||
|
||||
@Document
|
||||
data class BahnStation(
|
||||
@Indexed var name: String,
|
||||
@TextIndexed var name: String,
|
||||
@Indexed(unique = true) var eva: String,
|
||||
var ds100: String,
|
||||
var db: Boolean
|
||||
|
||||
Reference in New Issue
Block a user