Package org.springframework.data.jpa.repository

Examples of org.springframework.data.jpa.repository.Query


   * @param defaultValue
   * @return
   */
  private <T> T getAnnotationValue(String attribute, Class<T> type) {

    Query annotation = method.getAnnotation(Query.class);
    Object value = annotation == null ? AnnotationUtils.getDefaultValue(Query.class, attribute) : AnnotationUtils
        .getValue(annotation, attribute);

    return type.cast(value);
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.jpa.repository.Query

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.