Interface TurAIAgentRepository

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

public interface TurAIAgentRepository extends org.springframework.data.jpa.repository.JpaRepository<TurAIAgent, String>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    findById(@NotNull String id)
     
    <S extends TurAIAgent>
    S
    save(S entity)
     

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById

    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.repository.ListCrudRepository

    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

    • findAll

      @Cacheable("turAIAgentfindAll") List<TurAIAgent> findAll()
      Specified by:
      findAll in interface org.springframework.data.repository.CrudRepository<TurAIAgent, String>
      Specified by:
      findAll in interface org.springframework.data.repository.ListCrudRepository<TurAIAgent, String>
    • findById

      @Cacheable("turAIAgentfindById") @NotNull @NotNull Optional<TurAIAgent> findById(@NotNull @NotNull String id)
      Specified by:
      findById in interface org.springframework.data.repository.CrudRepository<TurAIAgent, String>
    • save

      @CacheEvict(value={"turAIAgentfindAll","turAIAgentfindById"}, allEntries=true) @NotNull <S extends TurAIAgent> S save(@NotNull S entity)
      Specified by:
      save in interface org.springframework.data.repository.CrudRepository<TurAIAgent, String>
    • delete

      @Modifying @Query("delete from TurAIAgent a where a.id = ?1") @CacheEvict(value={"turAIAgentfindAll","turAIAgentfindById"}, allEntries=true) void delete(String id)