[quote=引用 4 楼 u014181631 的回复:] 是什么需求?要map当map的value这样去存数据?
是什么需求?要map当map的value这样去存数据?
query.setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP).list()
Map<String,Country> map= new HashMap<String,Country>(); for(Country c: list){ map.put(c.id,c); } return map;
81,122
社区成员
341,744
社区内容
加载中
试试用AI创作助手写篇文章吧