Package org.springframework.data.repository

Examples of org.springframework.data.repository.RepositoryDefinition.domainClass()


  private Class<?> resolveDomainType(Class<?> repositoryInterface) {

    RepositoryDefinition annotation = repositoryInterface.getAnnotation(RepositoryDefinition.class);

    if (annotation == null || annotation.domainClass() == null) {
      throw new IllegalArgumentException(String.format("Could not resolve domain type of %s!", repositoryInterface));
    }

    return annotation.domainClass();
  }
View Full Code Here


    if (annotation == null || annotation.domainClass() == null) {
      throw new IllegalArgumentException(String.format("Could not resolve domain type of %s!", repositoryInterface));
    }

    return annotation.domainClass();
  }
}
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.