Package org.nutz.dao.entity.annotation

Examples of org.nutz.dao.entity.annotation.View


      tableName=this.getOrmRule().class2TableName(type.getSimpleName());
    }else{
      tableName=tableAnnotation.value();
    }
    String viewName=null;
    View viewAnnotation=type.getAnnotation(View.class);
    if(viewAnnotation==null&&tableAnnotation==null){//如果有view标签
      viewName=this.getOrmRule().class2TableName(type.getSimpleName());
    }else if(tableAnnotation!=null){
      viewName=tableAnnotation.value();
    }else{
      viewName=viewAnnotation.value();
    }
//    得到表结构
    MyTable table=CollectData.getTableByTableName(tableName, conn,false);
    Entity<?> entity = new Entity<Object>();
    Mirror<?> mirror = Mirror.me(type);
View Full Code Here

TOP

Related Classes of org.nutz.dao.entity.annotation.View

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.