Skip to content

Commit

Permalink
fix enum
Browse files Browse the repository at this point in the history
  • Loading branch information
klahap committed Dec 4, 2024
1 parent 0c027b3 commit cb5055e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/util/codegen/Enum.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal fun Enum.toTypeSpecInternal() = buildEnum(this@toTypeSpecInternal.name.
addSuperclassConstructorParameter("pgEnumLabel = %S", field)
}
}
val pgEnumTypeNameValue = "${this@toTypeSpecInternal.name.schema}.${this@toTypeSpecInternal.name.name}"
val pgEnumTypeNameValue = "${this@toTypeSpecInternal.name.schema.schemaName}.${this@toTypeSpecInternal.name.name}"
addProperty(name = "pgEnumTypeName", type = String::class.asTypeName()) {
initializer("%S", pgEnumTypeNameValue)
addModifiers(KModifier.OVERRIDE)
Expand Down

0 comments on commit cb5055e

Please sign in to comment.