Skip to main content
Version: Latest(3.11)

DatabaseTypeAnnotation 数据库存储类型

数据库存储类型

1. 结构声明

class DatabaseTypeAnnotation extends BaseNode {
typeName: string;
arguments?: Map<string, string>;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "DatabaseTypeAnnotation",
"typeName": "decimal",
"arguments": {
"precision": "31"
}
}

对应的代码如下:

@DatabaseTypeAnnotation(
typeName = "decimal",
arguments = [ "precision" -> "31" ],
)