mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
Merge remote-tracking branch 'origin/v5-dev' into v5-dev
# Conflicts: # hutool-db/src/main/java/cn/hutool/db/ActiveEntity.java
This commit is contained in:
commit
0723813452
@ -15,7 +15,7 @@ public class DictTest {
|
||||
.set("key1", 1)//int
|
||||
.set("key2", 1000L)//long
|
||||
.set("key3", DateTime.now());//Date
|
||||
|
||||
|
||||
Long v2 = dict.getLong("key2");
|
||||
Assert.assertEquals(Long.valueOf(1000L), v2);
|
||||
}
|
||||
|
@ -139,11 +139,6 @@ public class ActiveEntity extends Entity {
|
||||
return (ActiveEntity) super.setFieldNames(fieldNames);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActiveEntity addFieldNames(String... fieldNames) {
|
||||
return (ActiveEntity) super.addFieldNames(fieldNames);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过lambda批量设置值
|
||||
* @param fields lambda,不能为空
|
||||
@ -154,6 +149,11 @@ public class ActiveEntity extends Entity {
|
||||
return (ActiveEntity) super.setFields(fields);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActiveEntity addFieldNames(String... fieldNames) {
|
||||
return (ActiveEntity) super.addFieldNames(fieldNames);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> ActiveEntity parseBean(T bean) {
|
||||
return (ActiveEntity) super.parseBean(bean);
|
||||
|
Loading…
x
Reference in New Issue
Block a user