|
@@ -1,7 +1,10 @@
|
|
|
package com.baomidou.mybatisplus.core.test;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.TableInfo;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.EncryptUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.TableInfoHelper;
|
|
|
+import lombok.Data;
|
|
|
import org.junit.Assert;
|
|
|
import org.junit.Test;
|
|
|
|
|
@@ -20,4 +23,20 @@ public class EncryptTest {
|
|
|
public void other() {
|
|
|
System.out.println(TableInfoHelper.checkRelated(true, "order", "'order'"));
|
|
|
}
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void testTableInfoHelper() {
|
|
|
+ TableInfo tableInfo = TableInfoHelper.initTableInfo(null, Xx.class);
|
|
|
+ System.out.println(tableInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ public static class Xx {
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String x1;
|
|
|
+ private String x2;
|
|
|
+ private String x3;
|
|
|
+ private String x4;
|
|
|
+ private String x5;
|
|
|
+ }
|
|
|
}
|