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