@@ -0,0 +1,581 @@
+package com.rizki.mufrizal.belajar.oauth2.repository;%0A%0Aimport com.rizki.mufrizal.belajar.oauth2.domain.User;%0Aimport org.springframework.data.jpa.repository.JpaRepository;%0Aimport org.springframework.data.jpa.repository.Query;%0Aimport org.springframework.data.repository.query.Param;%0Aimport org.springframework.stereotype.Repository;%0A%0A@Repository%0Apublic interface UserRepository extends JpaRepository%3CUser, String%3E%7B%0A    @Query(%22select u from User u left join fetch u.userRoles pd where u.username = :username%22)%0A    public User getUserByUsername(@Param(%22username%22) String username);%0A%7D%0A

Add Domain User Repository