Package org.nutz.dao.impl.entity.info

Examples of org.nutz.dao.impl.entity.info.TableInfo


  }

  public <T> Entity<T> make(Class<T> type) {
    NutEntity<T> en = new NutEntity<T>(type);

    TableInfo ti = _createTableInfo(type);

    /*
     * 获取实体的扩展描述
     */
    // 全局
View Full Code Here


   * @param type
   *            实体类型
   * @return 实体表描述
   */
  private TableInfo _createTableInfo(Class<?> type) {
    TableInfo info = new TableInfo();
    Mirror<?> mirror = Mirror.me(type);
    info.annTable = mirror.getAnnotation(Table.class);
    info.annView = mirror.getAnnotation(View.class);
    info.annMeta = mirror.getAnnotation(TableMeta.class);
    info.annPK = mirror.getAnnotation(PK.class);
View Full Code Here

    }

    public <T> Entity<T> make(Class<T> type) {
        NutEntity<T> en = _createNutEntity(type);

        TableInfo ti = _createTableInfo(type);

        /*
         * 获取实体的扩展描述
         */
        // 全局
View Full Code Here

     * @param type
     *            实体类型
     * @return 实体表描述
     */
    private TableInfo _createTableInfo(Class<?> type) {
        TableInfo info = new TableInfo();
        Mirror<?> mirror = Mirror.me(type);
        info.annTable = mirror.getAnnotation(Table.class);
        info.annView = mirror.getAnnotation(View.class);
        info.annMeta = mirror.getAnnotation(TableMeta.class);
        info.annPK = mirror.getAnnotation(PK.class);
View Full Code Here

    }

    public <T> Entity<T> make(Class<T> type) {
        NutEntity<T> en = _createNutEntity(type);

        TableInfo ti = _createTableInfo(type);

        /*
         * 获取实体的扩展描述
         */
        // 全局
View Full Code Here

     * @param type
     *            实体类型
     * @return 实体表描述
     */
    private TableInfo _createTableInfo(Class<?> type) {
        TableInfo info = new TableInfo();
        Mirror<?> mirror = Mirror.me(type);
        info.annTable = mirror.getAnnotation(Table.class);
        info.annView = mirror.getAnnotation(View.class);
        info.annMeta = mirror.getAnnotation(TableMeta.class);
        info.annPK = mirror.getAnnotation(PK.class);
View Full Code Here

TOP

Related Classes of org.nutz.dao.impl.entity.info.TableInfo

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.