Explorar o código

update test case for oracle sequence

yuxiaobin %!s(int64=8) %!d(string=hai) anos
pai
achega
4d51a5c674

+ 1 - 1
mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/oracle/TestSequserMapperTest.java

@@ -81,7 +81,7 @@ public class TestSequserMapperTest {
             rlt = testSequserMapper.insert(u);
         }
         for (TestSequser u : ul) {
-        	System.err.println("\n one.id-------:" + u.getId()+", testId="+u.getTestId());
+            System.err.println("\n one.id-------:" + u.getId());
         }
         
         /**

+ 1 - 11
mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/oracle/entity/BaseTestEntity.java

@@ -20,10 +20,7 @@ public class BaseTestEntity implements Serializable {
      * 主键ID
      */
     @TableId(value = "TEST_ID", type = IdType.INPUT)
-    private Long testId;
-
-    private transient Long id;
-
+    private Long id;
 
     public BaseTestEntity() {
 
@@ -38,11 +35,4 @@ public class BaseTestEntity implements Serializable {
 		this.id = id;
 	}
 
-    public Long getTestId() {
-        return testId;
-    }
-
-    public void setTestId(Long testId) {
-        this.testId = testId;
-    }
 }