mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 17:48:25 +08:00
kotlin代码生成器 entity类定义及属性设置为open。
This commit is contained in:
parent
0a7752f51a
commit
ef3a5fd71c
@ -27,7 +27,7 @@ import io.swagger.v3.oas.annotations.media.Schema
|
|||||||
*/
|
*/
|
||||||
#(table.buildTableAnnotation())
|
#(table.buildTableAnnotation())
|
||||||
#end
|
#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)
|
#for(column : table.columns)
|
||||||
#set(comment = javadocConfig.formatColumnComment(column.comment))
|
#set(comment = javadocConfig.formatColumnComment(column.comment))
|
||||||
#if(isNotBlank(comment))
|
#if(isNotBlank(comment))
|
||||||
@ -45,7 +45,7 @@ import io.swagger.v3.oas.annotations.media.Schema
|
|||||||
#if(withSwagger && swaggerVersion.getName() == "DOC")
|
#if(withSwagger && swaggerVersion.getName() == "DOC")
|
||||||
@Schema(description = "#(column.comment)")
|
@Schema(description = "#(column.comment)")
|
||||||
#end
|
#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
|
#end
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user