Package org.springframework.data.solr.core.mapping

Examples of org.springframework.data.solr.core.mapping.SolrDocument


   * @param type
   * @return empty string if {@link SolrDocument} not present or {@link SolrDocument#solrCoreName()} is blank.
   * @since 1.1
   */
  public static String resolveSolrCoreName(Class<?> type) {
    SolrDocument annotation = AnnotationUtils.findAnnotation(type, SolrDocument.class);
    if (annotation != null && StringUtils.isNotBlank(annotation.solrCoreName())) {
      return annotation.solrCoreName();
    }
    return "";
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.solr.core.mapping.SolrDocument

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.