Package com.quickorm.stereotype

Examples of com.quickorm.stereotype.Table


        this.entityClass = entityClass;
        //扫描entityClass(注意,要设置Accessable为true)

        //首先取得表名
        Table tableAnnotation = (Table) entityClass.getAnnotation(Table.class);
        if (tableAnnotation == null || StringUtils.isEmpty(tableAnnotation.name())) {
            this.tableName = entityClass.getSimpleName();
        } else {
            this.tableName = tableAnnotation.name();
        }
        //然后扫描字段
        Field[] filedArray = ObjectHelper.getClassAllField(entityClass);
        for (int i = 0; i <= filedArray.length - 1; i++) {
            Field field = filedArray[i];
View Full Code Here

TOP

Related Classes of com.quickorm.stereotype.Table

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.