Interface AppRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<App,String>, org.springframework.data.jpa.repository.JpaRepository<App,String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<App>, org.springframework.data.repository.ListCrudRepository<App,String>, org.springframework.data.repository.ListPagingAndSortingRepository<App,String>, org.springframework.data.repository.PagingAndSortingRepository<App,String>, org.springframework.data.repository.query.QueryByExampleExecutor<App>, org.springframework.data.repository.Repository<App,String>

@Repository @NullMarked public interface AppRepository extends org.springframework.data.jpa.repository.JpaRepository<App,String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<App>

AppRepository 是服务实体的 JPA 数据仓库接口。

它提供了对 App 实体的数据库操作,包括基本的 CRUD 和基于 JPA 规范的查询。

Author:
xezzon
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    查询所有服务,并按 ordinal 字段升序排列。

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, count, delete, delete, exists, exists, findAll, findAll, findAll, findAll, findAll, findBy, findBy, findOne, findOne, update

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findAllByOrderByOrdinalAsc

      List<App> findAllByOrderByOrdinalAsc()
      查询所有服务,并按 ordinal 字段升序排列。
      Returns:
      包含所有服务实体的列表,按顺序排序。