jpa count in custom query 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);
}