Skip to content

Instantly share code, notes, and snippets.

@mlescaille
Last active September 16, 2020 03:08
Show Gist options
  • Save mlescaille/72d3ec1fc5eaca85b99037d88d0da0d2 to your computer and use it in GitHub Desktop.
Save mlescaille/72d3ec1fc5eaca85b99037d88d0da0d2 to your computer and use it in GitHub Desktop.
package com.tutorial.googleeoauth.repository
import com.tutorial.googleeoauth.domain.GoogleCredentialDetails
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import org.springframework.data.jpa.repository.JpaRepository
/**
* Repository for {@link GoogleCredentialDetails}. Represents credentials of Google's
* OAuth authentication and authorization process.
*/
public interface GoogleCredentialDetailsRepository extends JpaRepository<GoogleCredentialDetails, Long> {
Page<GoogleCredentialDetails> findAll(Pageable pageable)
List<GoogleCredentialDetails> findAllOauthClientId()
GoogleCredentialDetails findByOauthClientId(String clientId)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment