mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-16 13:59:22 +00:00
repos models generator improvements
This commit is contained in:
@@ -14,6 +14,7 @@ public data class NewTest(
|
||||
override val property1: String,
|
||||
override val property2: Int,
|
||||
@Serializable
|
||||
@SerialName(`value` = "custom_parent_name")
|
||||
override val parent: ParentTypeId?,
|
||||
) : Test
|
||||
|
||||
@@ -24,6 +25,7 @@ public data class RegisteredTest(
|
||||
override val property1: String,
|
||||
override val property2: Int,
|
||||
@Serializable
|
||||
@SerialName(`value` = "custom_parent_name")
|
||||
override val parent: ParentTypeId?,
|
||||
) : Test, IRegisteredTest
|
||||
|
||||
|
@@ -2,6 +2,7 @@ package dev.inmo.micro_utils.repos.generator.test
|
||||
|
||||
import dev.inmo.micro_utils.repos.annotations.GenerateCRUDModel
|
||||
import dev.inmo.micro_utils.repos.annotations.GenerateCRUDModelExcludeOverride
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlin.jvm.JvmInline
|
||||
|
||||
@@ -18,6 +19,7 @@ sealed interface Test {
|
||||
val property1: String
|
||||
val property2: Int
|
||||
@Serializable
|
||||
@SerialName("custom_parent_name")
|
||||
val parent: ParentTypeId?
|
||||
|
||||
@GenerateCRUDModelExcludeOverride
|
||||
|
Reference in New Issue
Block a user