Examples of AlsoLoad


Examples of com.googlecode.objectify.annotation.AlsoLoad

    // If we have @IgnoreLoad, don't add priamry name to the names collection (which is used for loading)
    if (this.getAnnotation(IgnoreLoad.class) == null)
      nameSet.add(name);
   
    // Now any additional names
    AlsoLoad alsoLoad = this.getAnnotation(AlsoLoad.class);
    if (alsoLoad != null)
      if (alsoLoad.value() == null || alsoLoad.value().length == 0)
        throw new IllegalStateException("If specified, @AlsoLoad must specify at least one value: " + thingForDebug);
      else
        for (String value: alsoLoad.value())
          if (value == null || value.trim().length() == 0)
            throw new IllegalStateException("Illegal empty value in @AlsoLoad for " + thingForDebug);
          else
            nameSet.add(value);
   
View Full Code Here

Examples of org.mongodb.morphia.annotations.AlsoLoad

     */
    public List<String> getLoadNames() {
        final List<String> names = new ArrayList<String>();
        names.add(getMappedFieldName());

        final AlsoLoad al = (AlsoLoad) foundAnnotations.get(AlsoLoad.class);
        if (al != null && al.value() != null && al.value().length > 0) {
            names.addAll(asList(al.value()));
        }

        return names;
    }
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.