I'm using Spring-data-rest. I want to display the count of the data/values
code:
public interface PersonRepository extends PagingAndSortingRepository<Person, Long> {
Public Long findByName(@Param("name") Long name);
}
If I search by Name, I get all the data associated with it.
But if I want only the count value instead of displaying the data, is there any way doing that?
Please help with your ideas..
Thanks.


Reply With Quote