日期:2014-05-16  浏览次数:20366 次

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);