Package org.springframework.data.repository

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


  private Class<? extends Serializable> resolveIdType(Class<?> repositoryInterface) {

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

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

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


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

    return annotation.idClass();
  }

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

    RepositoryDefinition annotation = repositoryInterface.getAnnotation(RepositoryDefinition.class);
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.