Last active
January 11, 2018 10:13
-
-
Save Sam-Kruglov/3fec9c2b08032472f5d267a39930a974 to your computer and use it in GitHub Desktop.
Integrate the DTO to Spring Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface UserRepository extends CrudRepository<User, Long> { | |
@RestResource(path = "username", rel = "getUsername") | |
UserUsername findUsernameById(@Param("id") Long id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment