过时方法.

This commit is contained in:
聂秋秋 2020-03-24 14:42:09 +08:00
parent c10be5d41f
commit 1546d5c275
2 changed files with 4 additions and 2 deletions

View File

@ -43,7 +43,7 @@ public interface MetaObjectHandler {
default boolean openInsertFill() {
return true;
}
/**
* 兼容填充主键判断开关
* 如果启用开关:当主键值为空且主键生成策略为NONE或INPUT会进入新增填充
@ -52,7 +52,9 @@ public interface MetaObjectHandler {
*
* @return 是否启用
* @since 3.3.0
* @deprecated 3.3.2
*/
@Deprecated
default boolean compatibleFillId() {
return false;
}

View File

@ -45,7 +45,7 @@ class PageTest {
Page page4 = new Page();
BeanCopier.create(page1.getClass(), page4.getClass(), false).copy(page1, page4, null);
//链式的set方法会导致属性BeanCopier的拷贝方法失败 https://github.com/cglib/cglib/issues/108.
Assertions.assertTrue(page4.isOptimizeCountSql());
Assertions.assertTrue(page4.optimizeCountSql());
Assertions.assertTrue(page4.isSearchCount());
Assertions.assertEquals(1, page4.getCurrent());
Assertions.assertEquals(1, page4.orders().size());