BigHugger
sk Skill · maxrave-dev

model-entity-mapping-extension-layer

Put every conversion between transport payloads, domain models and persistence rows in dedicated files of pure extension functions — one direction per function, no suspending work, no logging, nothing else in the file — and keep the layer honest with a grep. Use when conversion code is spreading into data classes, data-access objects or service clients, when a field turns out to be holding a value that belongs to a…

installs 8w
0
30-day movement
starts with the next reading
Related entries
1
Connections
0
kotlinbash
Host repository
maxrave-dev/kotlin-footguns
Host stars
541