Ver código fonte

添加配置baseEntity

jobob 9 anos atrás
pai
commit
03d904a5e8

+ 66 - 0
mybatis-plus/src/main/java/com/baomidou/mybatisplus/generator/ConfigBaseEntitiy.java

@@ -0,0 +1,66 @@
+/**
+ * Copyright (c) 2011-2020, hubin (jobob@qq.com).
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.baomidou.mybatisplus.generator;
+
+/**
+ * <p>
+ * 基础实体配置
+ * </p>
+ * 
+ * @author hubin
+ * @Date 2016-09-22
+ */
+public class ConfigBaseEntitiy {
+	/*
+	 * 包名
+	 */
+	private String packageName;
+
+	/*
+	 * 类名
+	 */
+	private String className;
+
+	/*
+	 * 公共字段数组
+	 */
+	private String[] columns;
+
+	public String getPackageName() {
+		return packageName;
+	}
+
+	public void setPackageName(String packageName) {
+		this.packageName = packageName;
+	}
+
+	public String getClassName() {
+		return className;
+	}
+
+	public void setClassName(String className) {
+		this.className = className;
+	}
+
+	public String[] getColumns() {
+		return columns;
+	}
+
+	public void setColumns(String[] columns) {
+		this.columns = columns;
+	}
+
+}

+ 1 - 1
mybatis-plus/src/main/java/com/baomidou/mybatisplus/generator/ConfigDataSource.java

@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2011-2014, hubin (jobob@qq.com).
+ * Copyright (c) 2011-2020, hubin (jobob@qq.com).
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  * use this file except in compliance with the License. You may obtain a copy of