• R/O
  • SSH
  • HTTPS

dbdiffreport: Commit


Commit MetaInfo

Revision355 (tree)
Zeit2022-04-22 13:31:10
Autort0145jp

Log Message

(empty log message)

Ändern Zusammenfassung

Diff

--- trunk/xxxMyBatis/plugins/org/mybatis/generator/plugins/AddSuffixEntityPlugin.java (nonexistent)
+++ trunk/xxxMyBatis/plugins/org/mybatis/generator/plugins/AddSuffixEntityPlugin.java (revision 355)
@@ -0,0 +1,25 @@
1+package org.mybatis.generator.plugins;
2+
3+
4+import java.util.List;
5+
6+import org.mybatis.generator.api.IntrospectedTable;
7+import org.mybatis.generator.api.PluginAdapter;
8+
9+/**
10+ * Rename Entity Class name
11+ */
12+public class AddSuffixEntityPlugin extends PluginAdapter {
13+
14+ @Override
15+ public boolean validate(List<String> warnings) {
16+ return true;
17+ }
18+
19+ @Override
20+ public void initialized(IntrospectedTable table) {
21+ super.initialized(table);
22+ String name = table.getBaseRecordType();
23+ table.setBaseRecordType(name + "Entity");
24+ }
25+}
\ No newline at end of file
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Show on old repository browser