Remove Dom prefix from domain models: rename classes to reflect business terminology, update references in tests, repositories, and services; add ADR for new naming conventions.
This commit is contained in:
+4
-4
@@ -2,7 +2,7 @@
|
||||
|
||||
package at.mocode.entries.service.tenant
|
||||
|
||||
import at.mocode.entries.domain.model.DomNennung
|
||||
import at.mocode.entries.domain.model.Nennung
|
||||
import at.mocode.entries.domain.repository.NennungRepository
|
||||
import at.mocode.entries.service.persistence.NennungTable
|
||||
import kotlinx.coroutines.runBlocking
|
||||
@@ -120,7 +120,7 @@ class EntriesIsolationIntegrationTest @Autowired constructor(
|
||||
// Schreibe eine Nennung in Tenant A
|
||||
TenantContextHolder.set(Tenant(eventId = "event_a", schemaName = "event_a"))
|
||||
try {
|
||||
val nennungA = DomNennung.random(now)
|
||||
val nennungA = Nennung.random(now)
|
||||
val loadedA = runBlocking {
|
||||
nennungRepository.save(nennungA)
|
||||
nennungRepository.findById(nennungA.nennungId)
|
||||
@@ -142,8 +142,8 @@ class EntriesIsolationIntegrationTest @Autowired constructor(
|
||||
}
|
||||
|
||||
// --- Kleine Test-Helfer ---
|
||||
private fun DomNennung.Companion.random(now: kotlin.time.Instant): DomNennung {
|
||||
return DomNennung(
|
||||
private fun Nennung.Companion.random(now: kotlin.time.Instant): Nennung {
|
||||
return Nennung(
|
||||
nennungId = Uuid.random(),
|
||||
abteilungId = Uuid.random(),
|
||||
bewerbId = Uuid.random(),
|
||||
|
||||
Reference in New Issue
Block a user