java - CRudRepository native query could not return Result Set -


i have simple test query inside crudrepository interface should return list of entities.

public interface testrepository extends crudrepository<test, testid> {     @query(value = "select p test p ", nativequery = true)     public list<test> gettests(); } 

when test exception:

org.springframework.dao.invaliddataaccessresourceusageexception: not extract resultset

if don't use native query works, want use native query because want extend select.

in order make query work :-

@query(value = "select * test ", nativequery = true) public list<test> gettests(); 

the reason because writing native query."select p test p" not native query


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -