Package org.nutz.mongo.annotation

Examples of org.nutz.mongo.annotation.CoField


        for (String str : cix.value())
          en.addIndex(str);

      // 循环所有的字段
      for (Field fld : en.getMirror().getFields()) {
        CoField cf = fld.getAnnotation(CoField.class);
        CoId ci = fld.getAnnotation(CoId.class);
        if (null != cf || null != ci) {
          en.addField(new FieldInfo(fld));
        }
      }
      // 循环所有的方法
      for (Method method : en.getType().getMethods()) {
        CoField cf = method.getAnnotation(CoField.class);
        CoId ci = method.getAnnotation(CoId.class);
        if (null != cf || null != ci) {
          en.addField(new FieldInfo(method));
        }
      }
View Full Code Here

TOP

Related Classes of org.nutz.mongo.annotation.CoField

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.