fix: Add missing SQL data source for job meta data

This commit is contained in:
2025-09-18 23:18:32 +02:00
parent 93163a7c51
commit e851aae410
5 changed files with 6 additions and 4 deletions
+2
View File
@@ -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" }
+2
View File
@@ -19,4 +19,6 @@ dependencies {
implementation(libs.spring.boot.batch)
implementation(libs.bundles.spring.boot.security)
runtimeOnly(libs.postgres)
}
@@ -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 {
@@ -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>
}
@@ -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?