Package org.apdplat.platform.annotation

Examples of org.apdplat.platform.annotation.ModelAttrRef


                return ;
            }
            //处理复杂对象类型
            if(field.isAnnotationPresent(ModelAttrRef.class)){
                LOG.debug("处理对象,字段为:"+field.getName());
                ModelAttrRef ref = field.getAnnotation(ModelAttrRef.class);
                String fieldRef = ref.value();
                //加入复杂对象的ID
                Object id = ReflectionUtils.getFieldValue(value, "id");
                data.put(fieldName+"_id", id.toString());
                //因为是复杂对象,所以变换字段名称
                fieldName=fieldName+"_"+fieldRef;
View Full Code Here


                    }
                }
                //处理复杂对象类型
                if(field.isAnnotationPresent(ModelAttrRef.class)){
                    LOG.debug("处理对象,字段为:"+fieldName);
                    ModelAttrRef ref = field.getAnnotation(ModelAttrRef.class);
                    String fieldRef = ref.value();
                    //获取fieldRef的值
                    value = ReflectionUtils.getFieldValue(value, fieldRef);
                }
                if("Timestamp".equals(valueClass) || "Date".equals(valueClass)){
                    if(field.isAnnotationPresent(RenderDate.class)){
View Full Code Here

TOP

Related Classes of org.apdplat.platform.annotation.ModelAttrRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.