<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="symbol monospace"><divclass="block"><divclass="block"><spanclass="token annotation builtin">@</span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-target/index.html"><spanclass="token annotation builtin">Target</span></a><spanclass="token punctuation">(</span><span>allowedTargets<spanclass="token operator"> = </span><spanclass="token punctuation">[</span><span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-c-l-a-s-s/index.html">AnnotationTarget.CLASS</a></span><wbr></wbr><spanclass="token punctuation">]</span></span><wbr></wbr><spanclass="token punctuation">)</span></div></div><spanclass="token keyword">annotation class </span><ahref="index.html">GenerateCRUDModel</a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter "><spanclass="token keyword">val </span>registeredSupertypes<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html">KClass</a><spanclass="token operator"><</span><spanclass="token operator">*</span><spanclass="token operator">></span><spanclass="token punctuation">, </span></span><spanclass="parameter "><spanclass="token keyword">val </span>serializable<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><spanclass="token operator"> = </span><spanclass="token boolean">true</span><spanclass="token punctuation">, </span></span><spanclass="parameter "><spanclass="token keyword">val </span>generateSerialName<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><spanclass="token operator"> = </span><spanclass="token boolean">true</span></span></span><spanclass="token punctuation">)</span></div><pclass="paragraph">Use this annotation and ksp generator (module <codeclass="lang-kotlin">micro_utils.repos.generator</code>) to create the next hierarchy of models:</p><ul><li><pclass="paragraph">New model. For example: data class NewTest</p></li><li><pclass="paragraph">Registered model. For example: data class RegisteredTest</p></li></ul><h4class="">Parameters</h4><divclass="table"><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span>registered</span><wbr></wbr><span><span>Supertypes</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">These <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html">KClass</a>es will be used as supertypes for registered model</p></div></div></div></div><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span><span>serializable</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">If true (default) will generate @<spandata-unresolved-link="kotlinx.serialization/SerialName///PointingToDeclaration/">kotlinx.serialization.SerialName</span> for models with their names as values</p></div></div></div></div></div><h4class="">See also</h4><divclass="table"><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="../-generate-c-r-u-d-model-exclude-override/index.html"><span>Generate</span><wbr></wbr><span>CRUDModel</span><wbr></wbr><span>Exclude</span><wbr></wbr><span><span>Override</span></sp