Examples of CoIndexes


Examples of org.nutz.mongo.annotation.CoIndexes

      // 获取capped属性,判断是否为固定集合
      en.setCappedSize(co.cappedSize());
      en.setCappedMax(co.cappedMax());

      // 获得集合索引
      CoIndexes cix = type.getAnnotation(CoIndexes.class);
      if (null != cix)
        for (String str : cix.value())
          en.addIndex(str);

      // 循环所有的字段
      for (Field fld : en.getMirror().getFields()) {
        CoField cf = fld.getAnnotation(CoField.class);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.