@@ -0,0 +1,806 @@
+package com.rizki.mufrizal.spring.oauth2.custom.repository;%0A%0Aimport com.rizki.mufrizal.spring.oauth2.custom.domain.User;%0Aimport org.springframework.data.jpa.repository.Query;%0Aimport org.springframework.data.repository.PagingAndSortingRepository;%0Aimport org.springframework.data.repository.query.Param;%0A%0A/**%0A *%0A * @Author Rizki Mufrizal %3Cmufrizalrizki@gmail.com%3E%0A * @Web %3Chttps://RizkiMufrizal.github.io%3E%0A * @Since Feb 5, 2017%0A * @Time 7:18:55 PM%0A * @Encoding UTF-8%0A * @Project Spring-OAuth2-Custom%0A * @Package com.rizki.mufrizal.spring.oauth2.custom.repository%0A *%0A */%0Apublic interface UserRepository extends PagingAndSortingRepository%3CUser, String%3E %7B%0A%0A    @Query(%22select u from User u left join fetch u.userRoles pd where u.username = :username%22)%0A    User LoginUser(@Param(%22username%22) String username);%0A%0A%7D%0A

add user repository