Package com.googlecode.objectify.annotation

Examples of com.googlecode.objectify.annotation.Entity


  /**
   * Get the kind from the class if the class has an @Entity annotation, otherwise return null.
   */
  private static String getKindHere(Class<?> clazz) {
    // @Entity is inherited so we have to be explicit about the declared annotations
    Entity ourAnn = TypeUtils.getDeclaredAnnotation(clazz, Entity.class);
    if (ourAnn != null)
      if (ourAnn.name() != null && ourAnn.name().length() != 0)
        return ourAnn.name();
      else
        return clazz.getSimpleName();

    return null;
  }
View Full Code Here

TOP

Related Classes of com.googlecode.objectify.annotation.Entity

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.