how to run count query in jpa code example
Example: jpa query methods count
public interface UserRepository extends CrudRepository<User, Integer> {
Long countByName(String name);
}
public interface UserRepository extends CrudRepository<User, Integer> {
Long countByName(String name);
}