query type fix
This commit is contained in:
parent
0242d74b93
commit
83dc373f81
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user