Interface CompanyRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Company,,Integer> org.springframework.data.jpa.repository.JpaRepository<Company,,Integer> org.springframework.data.repository.PagingAndSortingRepository<Company,,Integer> org.springframework.data.repository.query.QueryByExampleExecutor<Company>,org.springframework.data.repository.Repository<Company,Integer>
@Repository
public interface CompanyRepository
extends org.springframework.data.jpa.repository.JpaRepository<Company,Integer>
Spring Data repository used to access the company in BBDD. See
Company.-
Method Summary
Modifier and TypeMethodDescriptionfindByName(String name) Find company by name.<S extends Company>
SsaveAndFlush(S entity) Saves an entity and flushes changes instantly.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne