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:
2026-04-08 23:00:49 +02:00
parent e83b09fd63
commit f2dff2a4d8
5 changed files with 76 additions and 9 deletions
@@ -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(),