首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

json 处置hibernate级联

2013-12-29 
json 处理hibernate级联JsonConfig config new JsonConfig()config.setJsonPropertyFilter(new Propert

json 处理hibernate级联
JsonConfig config = new JsonConfig(); 
config.setJsonPropertyFilter(new PropertyFilter(){ 
    public boolean apply(Object source, String name, Object value) { 
        if(name.equals("ursMember")) { //要过滤的areas ,Map对象中的 
            return true; 
        } else { 
            return false; 
        } 
    } 
});                 
//reJsonObject = JSONObject.fromObject(userInfo,config);
//reJsonObject.put("rc", resultCode);

热点排行