@Repository public interface OAuthClientRepository extends org.springframework.data.jpa.repository.JpaRepository<OAuthClient,Long>, org.springframework.data.querydsl.QueryDslPredicateExecutor<OAuthClient>
| Modifier and Type | Method and Description |
|---|---|
OAuthClient |
findByClientId(String clientId)
Find by client id.
|
OAuthClient |
findByIdAndVersion(long id,
int version)
Find by id and version.
|
void |
setClientSecret(long id,
String encodedPassword)
Sets the client secret.
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllcount, delete, delete, delete, deleteAll, exists, findOne, saveOAuthClient findByClientId(String clientId)
clientId - the client idOAuthClient findByIdAndVersion(long id, int version)
id - the idversion - the version@Modifying
@Query(value="update OAuthClient set clientSecret = ?2 where id = ?1")
void setClientSecret(long id,
String encodedPassword)
id - the oauth client database IDencodedPassword - the encoded passwordCopyright © 2020 Global Crop Diversity Trust. All rights reserved.