Tabnine Logo
RepositoryDefinition.idClass
Code IndexAdd Tabnine to your IDE (free)

How to use
idClass
method
in
org.springframework.data.repository.RepositoryDefinition

Best Java code snippets using org.springframework.data.repository.RepositoryDefinition.idClass (Showing top 4 results out of 315)

origin: org.springframework.data/spring-data-commons-core

public Class<? extends Serializable> getIdType() {
  RepositoryDefinition annotation = repositoryInterface.getAnnotation(RepositoryDefinition.class);
  return annotation == null ? null : annotation.idClass();
}
origin: apache/servicemix-bundles

private Class<?> 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();
}
origin: com.mmnaseri.utils/spring-data-mock

@Override
protected RepositoryMetadata resolveFromInterface(Class<?> repositoryInterface) {
  final RepositoryDefinition definition = repositoryInterface.getAnnotation(RepositoryDefinition.class);
  if (definition == null) {
    throw new RepositoryDefinitionException(repositoryInterface, "Expected the repository to be annotated with @RepositoryDefinition");
  }
  final Class<?> entityType = definition.domainClass();
  final Class<? extends Serializable> idType = definition.idClass();
  String idProperty = resolveIdProperty(entityType, idType);
  return new ImmutableRepositoryMetadata(idType, entityType, repositoryInterface, idProperty);
}
origin: mmnaseri/spring-data-mock

@Override
protected RepositoryMetadata resolveFromInterface(Class<?> repositoryInterface) {
  final RepositoryDefinition definition = repositoryInterface.getAnnotation(RepositoryDefinition.class);
  if (definition == null) {
    throw new RepositoryDefinitionException(repositoryInterface, "Expected the repository to be annotated with @RepositoryDefinition");
  }
  final Class<?> entityType = definition.domainClass();
  final Class<? extends Serializable> idType = definition.idClass();
  String idProperty = resolveIdProperty(entityType, idType);
  return new ImmutableRepositoryMetadata(idType, entityType, repositoryInterface, idProperty);
}
org.springframework.data.repositoryRepositoryDefinitionidClass

Popular methods of RepositoryDefinition

  • <init>
  • domainClass

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now