File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ t_demo.xml
106
106
<name>t_demo</name>
107
107
<!--插入语句自动创建的 -->
108
108
<initCmd>insert into t_demo(id,name) values(#{id},#{name})</initCmd>
109
- <!--数据库类型 -->
110
- <dbType>Mysql </dbType>
109
+ <!--数据库类型 MONGODB RELATIONAL -->
110
+ <dbType>RELATIONAL </dbType>
111
111
<!--entity所在类 -->
112
112
<className>com.codingapi.cidemo.domain.Demo</className>
113
113
<list>
@@ -132,8 +132,8 @@ mongo.xml
132
132
<name>logger</name>
133
133
<!--暂不需要 -->
134
134
<initCmd></initCmd>
135
- <!--数据库类型 -->
136
- <dbType>Mongo </dbType>
135
+ <!--数据库类型 MONGODB RELATIONAL -->
136
+ <dbType>MONGODB </dbType>
137
137
<!--entity所在类 -->
138
138
<className>com.codingapi.cidemo.collection.Logger</className>
139
139
<list>
@@ -155,10 +155,10 @@ mongo.xml
155
155
156
156
如何创建 数据模块xml
157
157
158
- 增加` @XmlBuild ` 配置表名称和类型即可
159
- ```
158
+ 增加` @XmlBuild ` 配置表名称和类型即可 ` colType ` 是字段插入语句的类型,分为 ` UNDERLINE ` 下划线和 ` CAMEL ` 驼峰两种类型
159
+ ``` java
160
160
@Data
161
- @XmlBuild(name = "t_demo",dbType= DBType.Mysql )
161
+ @XmlBuild (name = " t_demo" ,dbType = DBType . RELATIONAL , colType = XmlBuild . ColType . UNDERLINE )
162
162
public class Demo extends BaseVO {
163
163
164
164
private Long id;
You can’t perform that action at this time.
0 commit comments