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 TypeMethodDescriptionvoidfindAll()@NotNull Optional<TurAIAgent> <S extends TurAIAgent>
Ssave(S entity) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsByIdMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findAll
- Specified by:
findAllin interfaceorg.springframework.data.repository.CrudRepository<TurAIAgent, String>- Specified by:
findAllin interfaceorg.springframework.data.repository.ListCrudRepository<TurAIAgent, String>
-
findById
@Cacheable("turAIAgentfindById") @NotNull @NotNull Optional<TurAIAgent> findById(@NotNull @NotNull String id) - Specified by:
findByIdin interfaceorg.springframework.data.repository.CrudRepository<TurAIAgent, String>
-
save
@CacheEvict(value={"turAIAgentfindAll","turAIAgentfindById"}, allEntries=true) @NotNull <S extends TurAIAgent> S save(@NotNull S entity) - Specified by:
savein interfaceorg.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)
-