Tabnine Logo
SimpleJpaRepository.applyRepositoryMethodMetadata
Code IndexAdd Tabnine to your IDE (free)

How to use
applyRepositoryMethodMetadata
method
in
org.springframework.data.jpa.repository.support.SimpleJpaRepository

Best Java code snippets using org.springframework.data.jpa.repository.support.SimpleJpaRepository.applyRepositoryMethodMetadata (Showing top 2 results out of 315)

origin: spring-projects/spring-data-jpa

/**
 * Creates a {@link TypedQuery} for the given {@link Specification} and {@link Sort}.
 *
 * @param spec can be {@literal null}.
 * @param domainClass must not be {@literal null}.
 * @param sort must not be {@literal null}.
 * @return
 */
protected <S extends T> TypedQuery<S> getQuery(@Nullable Specification<S> spec, Class<S> domainClass, Sort sort) {
  CriteriaBuilder builder = em.getCriteriaBuilder();
  CriteriaQuery<S> query = builder.createQuery(domainClass);
  Root<S> root = applySpecificationToCriteria(spec, domainClass, query);
  query.select(root);
  if (sort.isSorted()) {
    query.orderBy(toOrders(sort, root, builder));
  }
  return applyRepositoryMethodMetadata(em.createQuery(query));
}
origin: org.springframework.data/spring-data-jpa

/**
 * Creates a {@link TypedQuery} for the given {@link Specification} and {@link Sort}.
 *
 * @param spec can be {@literal null}.
 * @param domainClass must not be {@literal null}.
 * @param sort must not be {@literal null}.
 * @return
 */
protected <S extends T> TypedQuery<S> getQuery(@Nullable Specification<S> spec, Class<S> domainClass, Sort sort) {
  CriteriaBuilder builder = em.getCriteriaBuilder();
  CriteriaQuery<S> query = builder.createQuery(domainClass);
  Root<S> root = applySpecificationToCriteria(spec, domainClass, query);
  query.select(root);
  if (sort.isSorted()) {
    query.orderBy(toOrders(sort, root, builder));
  }
  return applyRepositoryMethodMetadata(em.createQuery(query));
}
org.springframework.data.jpa.repository.supportSimpleJpaRepositoryapplyRepositoryMethodMetadata

Popular methods of SimpleJpaRepository

  • delete
  • findAll
  • findOne
  • count
  • save
  • readPage
    Reads the given TypedQuery into a Page applying the given Pageable and Specification.
  • exists
  • findById
  • flush
  • getCountQuery
    Creates a new count query for the given Specification.
  • getQuery
    Creates a TypedQuery for the given Specification and Sort.
  • <init>
    Creates a new SimpleJpaRepository to manage objects of the given JpaEntityInformation.
  • getQuery,
  • <init>,
  • applyQueryHints,
  • applySpecificationToCriteria,
  • deleteAll,
  • deleteAllInBatch,
  • deleteInBatch,
  • executeCountQuery,
  • getCountQueryString

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best plugins for Eclipse
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