I have the repository \"ClientRepository\":
public interface ClientRepository extends PagingAndSortingRepository {
}
When i
The HATEOAS functionality is available out of the box only for the Spring data jpa repositories annotated with @RepositoryRestResource. That automatically exposes the rest endpoint and adds the links.
When you use the repository in the controller you just get the object and the jackson mapper maps it to json.
If you want to add links when using Spring MVC controllers take a look here