jpa repository native query count 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);
}