query type fix

This commit is contained in:
Loredana Crusoveanu 2018-06-23 20:31:50 +03:00
parent 0242d74b93
commit 83dc373f81

View File

@ -20,7 +20,7 @@ public interface PersonRepository extends MyUtilityRepository<Person, Long> {
Person findByName(@Param("name") String name);
@Query(value = "SELECT AVG(p.age) FROM person p", nativeQuery = true)
Person getAverageAge();
int getAverageAge();
@Procedure(name = "count_by_name")
long getCountByName(@Param("name") String name);