Package com.quickorm.stereotype

Examples of com.quickorm.stereotype.Column


            //如果有"NotColumn"注解,则说明此字段不是数据列
            if (field.getAnnotation(NotColumn.class) != null) {
                continue;
            }

            Column columnAnnotation = field.getAnnotation(Column.class);
            //如果没有"Column"注解,或者没有设置列名
            if (columnAnnotation == null || StringUtils.isEmpty(columnAnnotation.name())) {
                //如果字段是protected修饰,则说明此字段不是数据列
                if (Modifier.isProtected(field.getModifiers())) {
                    continue;
                }
                tmpColumnName = field.getName();
            } else {
                tmpColumnName = columnAnnotation.name();
            }
            //字段加入Map中
            columnNameFieldMap.put(tmpColumnName, field);

            //判断是不是主键
View Full Code Here

TOP

Related Classes of com.quickorm.stereotype.Column

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.