Package org.monjo.core.annotations

Examples of org.monjo.core.annotations.Indexed


        field = clasz.getField(fieldName);
      } catch (Exception e1) {
        throw new RuntimeException(e1);
      }
      if (field.isAnnotationPresent(Indexed.class)) {
        Indexed indexed = field.getAnnotation(Indexed.class);
        BasicDBObject obj = new BasicDBObject();
        obj.put(fieldName, indexed.value().toInt());
        collection.ensureIndex(obj);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.monjo.core.annotations.Indexed

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.