nutz icon indicating copy to clipboard operation
nutz copied to clipboard

提个需求 Dao 查询原生支持map方法(key区分大小写)

Open Wizzercn opened this issue 6 years ago • 6 comments

目前Record key全部小写,在有些场景使用不便,比如前后端分离开发。 要么另外建个 Remap 类,要么 Record 增加配置项?

Wizzercn avatar Apr 30 '19 10:04 Wizzercn

不新建类 使用NutMap 类可好。

jiyuefeng avatar Jul 19 '19 08:07 jiyuefeng

org.nutz.dao.entity.Record.sensitive()

wendal avatar Oct 22 '19 01:10 wendal

@wendal 聪明啊~~

Wizzercn avatar Oct 22 '19 07:10 Wizzercn

List<Record> query(String tableName, Condition cnd, Pager pager);

返回的对象已经是处理过的,,怎么返回 sensitive() 的对象?..

Wizzercn avatar Oct 22 '19 07:10 Wizzercn

@wendal 2021年了,还是有这个问题,为什么要转小写?有什么特殊的考虑?

fangtaoli avatar Aug 23 '21 06:08 fangtaoli

record.sentinal() 就能拿到区分大小写的map

wendal avatar Aug 23 '21 14:08 wendal