From e4cbee9c16c6418477e687e6be3c06d6a82f06d6 Mon Sep 17 00:00:00 2001 From: gowthaman Date: Tue, 30 Jul 2024 11:11:47 +0530 Subject: [PATCH] add config for print --- src/main/kotlin/com/restapi/domain/models.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/com/restapi/domain/models.kt b/src/main/kotlin/com/restapi/domain/models.kt index cb1a058..597ccaa 100644 --- a/src/main/kotlin/com/restapi/domain/models.kt +++ b/src/main/kotlin/com/restapi/domain/models.kt @@ -285,6 +285,10 @@ open class Plant : BaseModel() { this.clear() this.putAll(p.prefixes ?: emptyMap()) } + this.print?.apply { + this.clear() + this.putAll(p.print ?: emptyMap()) + } this.save() } @@ -292,6 +296,8 @@ open class Plant : BaseModel() { var plantName: String = "" var plantOriginalName: String? = "" + @DbJsonB + var print: MutableMap? = mutableMapOf() @DbJsonB var prefixes: MutableMap? = mutableMapOf() }