From 786017473d24671169854ced03420dd52bb0d814 Mon Sep 17 00:00:00 2001 From: tamimattafi <35191844+tamimattafi@users.noreply.github.com> Date: Sun, 19 May 2024 02:47:36 +0700 Subject: [PATCH] fix: mapper arguments order issue (#21) --- .../kotlin/com/attafitamim/kabin/publish/PublishConventions.kt | 2 +- .../kabin/compiler/sql/generator/mapper/MapperGenerator.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/convention/publishing/src/main/kotlin/com/attafitamim/kabin/publish/PublishConventions.kt b/convention/publishing/src/main/kotlin/com/attafitamim/kabin/publish/PublishConventions.kt index f2c03bb..18fbeb1 100644 --- a/convention/publishing/src/main/kotlin/com/attafitamim/kabin/publish/PublishConventions.kt +++ b/convention/publishing/src/main/kotlin/com/attafitamim/kabin/publish/PublishConventions.kt @@ -10,7 +10,7 @@ import org.gradle.api.publish.maven.MavenPomScm class PublishConventions : Plugin { - private val version = "0.1.0-alpha08" + private val version = "0.1.0-alpha09" private val group = "com.attafitamim.kabin" override fun apply(project: Project) { diff --git a/library/compiler/src/jvmMain/kotlin/com/attafitamim/kabin/compiler/sql/generator/mapper/MapperGenerator.kt b/library/compiler/src/jvmMain/kotlin/com/attafitamim/kabin/compiler/sql/generator/mapper/MapperGenerator.kt index b113ad1..b99aa6f 100644 --- a/library/compiler/src/jvmMain/kotlin/com/attafitamim/kabin/compiler/sql/generator/mapper/MapperGenerator.kt +++ b/library/compiler/src/jvmMain/kotlin/com/attafitamim/kabin/compiler/sql/generator/mapper/MapperGenerator.kt @@ -86,7 +86,7 @@ class MapperGenerator( entitySpec: EntitySpec ): Set { val entityClassName = entitySpec.declaration.toClassName() - val adapters = HashSet() + val adapters = LinkedHashSet() val builder = KabinMapper<*>::map.buildSpec() .addModifiers(KModifier.OVERRIDE) .returns(entityClassName)