Check out example codes for "Validation failed for query for method public abstract java.util.List". It will help you in understanding the concepts better.

Code Example 1

@Query(value = "SELECT ...", nativeQuery = true)
public List<Object[]> transactions();

Learn ReactJs, React Native from akashmittal.com