java - Spring JPA repository @query not able to resolve object name and param name -



java - Spring JPA repository @query not able to resolve object name and param name -

i writing interface jpacrmprofile entity class :

public interface jpacrmprofilerepository extends jparepository<jpacrmprofile, long> { @query("select c jpacrmprofile c c.domain_id = :domainid , c.name = :name") jpacrmprofile findonebydomain(@param(domainid) long domainid, @param(name) string name); }

in ide ,object name in query jpacrmprofile , domainid in @param see in reddish color error msg can't resolve symbol

try alter "domain_id" , "name" according names in jpacrmprofile class.

for improve help need code of jpacrmprofile class. can here: http://docs.spring.io/spring-data/jpa/docs/1.7.1.release/reference/html/#jpa.query-methods

ps.i have same issue now. application works nice.

java spring jpa spring-data-jpa

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -