congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SimpleJpaRepository.findAll
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: spring-projects/spring-data-jpa

@Transactional
@Override
public void deleteAll() {
  for (T element : findAll()) {
    delete(element);
  }
}
origin: spring-projects/spring-data-jpa

@Override
public Page<T> findAll(Pageable pageable) {
  if (isUnpaged(pageable)) {
    return new PageImpl<T>(findAll());
  }
  return findAll((Specification<T>) null, pageable);
}
origin: net.osgiliath.modules/net.osgiliath.module.spring-data-jpa

@Override
public List<T> findAll(Specification<T> spec) {
 return delegate.findAll(spec);
}
origin: net.osgiliath.modules/net.osgiliath.module.spring-data-jpa

@Override
public Page<T> findAll(Specification<T> spec, Pageable pageable) {
 return delegate.findAll(spec, pageable);
}
origin: net.osgiliath.modules/net.osgiliath.module.spring-data-jpa

@Override
public List<T> findAll() {
 return delegate.findAll();
}
origin: net.osgiliath.modules/net.osgiliath.module.spring-data-jpa

@Override
public List<T> findAll(Iterable<ID> ids) {
 return delegate.findAll(ids);
}
origin: com.ecfront.dew/boot-core

@Override
public List<E> findDisable() {
  return super.findAll((root, query, cb) -> cb.equal(root.get("enable"), false));
}
origin: org.springframework.data/spring-data-jpa

@Transactional
public void deleteAll() {
  for (T element : findAll()) {
    delete(element);
  }
}
origin: org.springframework.data/spring-data-jpa

public Page<T> findAll(Pageable pageable) {
  if (isUnpaged(pageable)) {
    return new PageImpl<T>(findAll());
  }
  return findAll((Specification<T>) null, pageable);
}
origin: dzinot/spring-boot-jpa-data-rest-soft-delete

@Override
public Iterable<T> findAllActive(Sort sort) {
  return super.findAll(notDeleted(), sort);
}
origin: dzinot/spring-boot-jpa-data-rest-soft-delete

@Override
public Iterable<T> findAllActive() {
  return super.findAll(notDeleted());
}
origin: dzinot/spring-boot-jpa-data-rest-soft-delete

@Override
public Page<T> findAllActive(Pageable pageable) {
  return super.findAll(notDeleted(), pageable);
}
origin: xautlx/s2jh4net

/**
 * 基于动态组合条件对象查询数据集合
 *
 * @param groupPropertyFilter
 * @return
 */
@Transactional(readOnly = true)
public List<T> findByFilters(GroupPropertyFilter groupPropertyFilter) {
  Specification<T> spec = buildSpecification(groupPropertyFilter);
  return jpaRepository.findAll(spec);
}
origin: xautlx/s2jh4net

/**
 * 基于动态组合条件对象和排序定义查询数据集合
 *
 * @param groupPropertyFilter
 * @param sort
 * @return
 */
@Transactional(readOnly = true)
public List<T> findByFilters(GroupPropertyFilter groupPropertyFilter, Sort sort) {
  Specification<T> spec = buildSpecification(groupPropertyFilter);
  return jpaRepository.findAll(spec, sort);
}
origin: xautlx/s2jh4net

/**
 * 单一条件对象查询数据集合
 *
 * @param propertyFilter
 * @return
 */
@Transactional(readOnly = true)
public List<T> findByFilter(PropertyFilter propertyFilter) {
  GroupPropertyFilter groupPropertyFilter = GroupPropertyFilter.buildDefaultAndGroupFilter(propertyFilter);
  Specification<T> spec = buildSpecification(groupPropertyFilter);
  return jpaRepository.findAll(spec);
}
origin: xautlx/s2jh4net

/**
 * 基于动态组合条件对象和分页(含排序)对象查询数据集合
 *
 * @param groupPropertyFilter
 * @param pageable
 * @return
 */
@Transactional(readOnly = true)
public JsonPage<T> findByPage(GroupPropertyFilter groupPropertyFilter, Pageable pageable) {
  Specification<T> specifications = buildSpecification(groupPropertyFilter);
  return new JsonPage(jpaRepository.findAll(specifications, pageable));
}
origin: com.ecfront.dew/boot-core

private Page<E> pagingStatus(int pageNumber, int pageSize, Sort sort, boolean enable) {
  Pageable pageRequest;
  if (sort == null) {
    pageRequest = new PageRequest(pageNumber, pageSize);
  } else {
    pageRequest = new PageRequest(pageNumber, pageSize, sort);
  }
  org.springframework.data.domain.Page result = super.findAll((root, query, cb) -> cb.equal(root.get("enable"), enable), pageRequest);
  return Page.build(pageNumber, pageSize, result.getTotalPages(), result.getContent());
}
origin: com.intoverflow.booster/booster-core

@Override
public <S extends T> Page<S> findAll(Example<S> example, Pageable pageable) {
  Page<S> page = super.findAll(example, pageable);
  return pageable == null ? new WrappedPageImpl<S>(page.getContent())
    : new WrappedPageImpl<S>(page.getContent(), pageable, page.getTotalElements());
}
origin: com.ecfront.dew/boot-core

@Override
public com.ecfront.dew.common.Page<E> paging(int pageNumber, int pageSize, Sort sort) {
  Pageable pageRequest;
  if (sort == null) {
    pageRequest = new PageRequest(pageNumber, pageSize);
  } else {
    pageRequest = new PageRequest(pageNumber, pageSize, sort);
  }
  org.springframework.data.domain.Page result = super.findAll(pageRequest);
  return com.ecfront.dew.common.Page.build(pageNumber, pageSize, result.getTotalElements(), result.getContent());
}
origin: com.intoverflow.booster/booster-core

@Override
public Page<T> findAll(Specification<T> spec, Pageable pageable) {
  Page<T> page = super.findAll(spec, pageable);
  return pageable == null ? new WrappedPageImpl<T>(page.getContent())
    : new WrappedPageImpl<T>(page.getContent(), pageable, page.getTotalElements());
}
org.springframework.data.jpa.repository.supportSimpleJpaRepositoryfindAll

Popular methods of SimpleJpaRepository

  • delete
  • 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.
  • applyQueryHints
  • <init>,
  • applyQueryHints,
  • applyRepositoryMethodMetadata,
  • applySpecificationToCriteria,
  • deleteAll,
  • deleteAllInBatch,
  • deleteInBatch,
  • executeCountQuery,
  • getCountQueryString

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Collectors (java.util.stream)
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JTable (javax.swing)
  • Join (org.hibernate.mapping)
  • Github Copilot alternatives
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