跳到主要内容

entity2iso-processor

自动收集自 lib/ksp/metadata/entity2iso-processor/README.md

entity2iso-processor is an SPI subprocessor in the Jimmer external family.

  • It is not a standalone direct KSP consumer entrypoint.
  • Normal users should consume it through the umbrella plugin site.addzero.ksp.jimmer-entity-external.
plugins {
id("site.addzero.ksp.jimmer-entity-external")
}

jimmerEntityExternal {
sharedSourceDir.set(
layout.projectDirectory.dir("src/commonMain/kotlin").asFile.absolutePath
)
entity2Iso {
packageName.set("site.addzero.isomorphic")
classSuffix.set("Iso")
serializableEnabled.set(true)
}
}

Generated Iso will now copy entity/property doc comments into KDoc by default.

  • entity2Iso.serializableEnabled=true: generate @Serializable and @Contextual
  • entity2Iso.serializableEnabled=false: generate plain Kotlin data class

The umbrella plugin injects:

  • jimmer-entity-external-processor
  • entity2iso-processor
  • entity2form-processor
  • entity2mcp-processor

Low-Level Fallback

Raw manual KSP wiring is still available for advanced cases, but it is not the documented default anymore. If you go that route, wire the full Jimmer external processor set yourself instead of pretending entity2iso-processor is an independent consumer plugin.

Maven / Gradle

已发布至 Maven Central。

implementation("site.addzero:entity2iso-processor:latest version")
<dependency>
<groupId>site.addzero</groupId>
<artifactId>entity2iso-processor</artifactId>
<version>latest version</version>
</dependency>