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,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?