Kotlin-jpa编译器插件

插件指定@Entity和@Embeddable注解作为标记,这样就会为被标记的类生成无参构造器。下面是怎么加入插件到Gradle:

buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-noarg:$kotlin_version"
}
}
apply plugin: "kotlin-jpa"

或者使用Gradle插件DSL:

plugins {
id "org.jetbrains.kotlin.plugin.jpa" version "<version to use>"
}

results matching ""

    No results matching ""