mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
fix: Add missing SQL data source for job meta data
This commit is contained in:
@@ -19,6 +19,7 @@ keycloak = "26.0.4"
|
||||
kotlin-logging = "3.0.5"
|
||||
kotlin-reflect = "2.2.20"
|
||||
kotlin-lombok = "1.9.0"
|
||||
postgres = "42.6.0"
|
||||
plugin-nebula-release = "17.2.2"
|
||||
plugin-lombok = "8.0.1"
|
||||
plugin-gradle-versions = "0.46.0"
|
||||
@@ -83,6 +84,7 @@ mockito-inline = "org.mockito:mockito-inline:5.2.0"
|
||||
mockito-junit = { module = "org.mockito:mockito-junit-jupiter", version.ref = "mockito" }
|
||||
kotlin-logging = { module = "io.github.microutils:kotlin-logging-jvm", version.ref = "kotlin-logging" }
|
||||
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin-reflect" }
|
||||
postgres = { module = "org.postgresql:postgresql", version.ref = "postgres" }
|
||||
plugin-nebula-release = { module = "com.netflix.nebula:nebula-release-plugin", version.ref = "plugin-nebula-release" }
|
||||
plugin-springboot = { module = "org.springframework.boot:spring-boot-gradle-plugin", version.ref = "spring-boot" }
|
||||
plugin-lombok = { module = "io.freefair.gradle:lombok-plugin", version.ref = "plugin-lombok" }
|
||||
|
||||
@@ -19,4 +19,6 @@ dependencies {
|
||||
|
||||
implementation(libs.spring.boot.batch)
|
||||
implementation(libs.bundles.spring.boot.security)
|
||||
|
||||
runtimeOnly(libs.postgres)
|
||||
}
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ import org.springframework.core.task.SimpleAsyncTaskExecutor
|
||||
import org.springframework.data.domain.Sort
|
||||
import org.springframework.transaction.PlatformTransactionManager
|
||||
|
||||
@EnableBatchProcessing
|
||||
@EnableBatchProcessing(databaseType = "POSTGRES")
|
||||
@Configuration
|
||||
class BatchProcessTimetableConfiguration {
|
||||
|
||||
|
||||
-2
@@ -8,6 +8,4 @@ import org.springframework.data.mongodb.repository.MongoRepository
|
||||
interface StopStorageRequestRepository : MongoRepository<StopStorageRequest, ObjectId> {
|
||||
// is used
|
||||
fun getStopStorageRequestsByUserIdAndTimetableId(userId: String, timetableId: String, pageable: Pageable): Page<StopStorageRequest>
|
||||
|
||||
fun saveAll(stopStorageRequests: List<StopStorageRequest>): List<StopStorageRequest>
|
||||
}
|
||||
+1
-1
@@ -5,8 +5,8 @@ import de.twomartens.timetable.model.common.UserId
|
||||
import de.twomartens.timetable.model.db.Timetable
|
||||
import org.bson.types.ObjectId
|
||||
import org.springframework.data.domain.Page
|
||||
import org.springframework.data.domain.Pageable
|
||||
import org.springframework.data.mongodb.repository.MongoRepository
|
||||
import java.awt.print.Pageable
|
||||
|
||||
interface TimetableRepository : MongoRepository<Timetable, ObjectId> {
|
||||
fun findByUserIdAndTimetableId(userId: UserId, timetableId: TimetableId): Timetable?
|
||||
|
||||
Reference in New Issue
Block a user