Jooq kotlin 枚举类型

Lio*_*orH 7 postgresql jooq kotlin

kotlin 中有没有办法让 enum 类扩展 Jooq 的EnumType

我收到一个编译错误,因为 EnumType 有一个抽象的 getName 方法,Kotlin 枚举类也是如此。

Error:(96, 5) Kotlin: Inherited platform declarations clash: The following declarations have the same JVM signature (getName()Ljava/lang/String;):
    fun <get-name>(): String defined in com.xyz.MyEnum.Val1
    fun getName(): String defined in com.xyz.MyEnum.Val1
Run Code Online (Sandbox Code Playgroud)

如果我使用常规 Kotlin 类而不是 enum 类,则 Jooq 失败并显示错误:

Error while looking up Scala enum
ClassNotFoundException ...
Run Code Online (Sandbox Code Playgroud)

Jooq + Kotlin + Postgresql 枚举可以很好地发挥作用吗?