kotlin代码生成器 entity类定义及属性设置为open。

This commit is contained in:
rainy 2024-07-18 11:46:52 +08:00
parent 0a7752f51a
commit ef3a5fd71c

View File

@ -27,7 +27,7 @@ import io.swagger.v3.oas.annotations.media.Schema
*/
#(table.buildTableAnnotation())
#end
#if(isBase)open #end class #(entityClassName) #if(withActiveRecord) : Model<#(entityClassName)>()#else#(table.buildKtExtends(isBase))#end {
open class #(entityClassName) #if(withActiveRecord) : Model<#(entityClassName)>()#else#(table.buildKtExtends(isBase))#end {
#for(column : table.columns)
#set(comment = javadocConfig.formatColumnComment(column.comment))
#if(isNotBlank(comment))
@ -45,7 +45,7 @@ import io.swagger.v3.oas.annotations.media.Schema
#if(withSwagger && swaggerVersion.getName() == "DOC")
@Schema(description = "#(column.comment)")
#end
#if(isBase)open #end var #(column.property): #(column.propertySimpleType)? = #if(isNotBlank(column.propertyDefaultValue)) = #(column.propertyDefaultValue)#else null#end
open var #(column.property): #(column.propertySimpleType)? = #if(isNotBlank(column.propertyDefaultValue)) = #(column.propertyDefaultValue)#else null#end
#end
}