Interface ProfileRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Profile,,String> org.springframework.data.jpa.repository.JpaRepository<Profile,,String> org.springframework.data.repository.PagingAndSortingRepository<Profile,,String> org.springframework.data.repository.query.QueryByExampleExecutor<Profile>,org.springframework.data.repository.Repository<Profile,String>
@Repository
public interface ProfileRepository
extends org.springframework.data.jpa.repository.JpaRepository<Profile,String>
Repository for profile queries.
-
Method Summary
Modifier and TypeMethodDescriptionfindByIdAndEbContract(String id, EbContract ebContract) Get a profile by its id and contract.findByNameAndEbContract(String name, EbContract ebContract) Get a profile by its name and contract.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, saveAllAndFlush, saveAndFlushMethods 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
-
findByNameAndEbContract
Get a profile by its name and contract.- Parameters:
name- profile name.ebContract- profile contract.- Returns:
- Profile.
-
findByIdAndEbContract
Get a profile by its id and contract.- Parameters:
id- profile id.ebContract- contract.- Returns:
- Profile.
-