History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17598
Type: Bug Bug
Status: Open Open
Assignee: Gregory Shrago
Reporter: Erik Pragt
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

JPA Query error

Created: 01 Apr 08 17:50   Updated: 01 Apr 08 17:58
Component/s: J2EE.Hibernate

Build: 7,757
Severity: High


 Description  « Hide
Hello, the following working code gives an error: 'select expected, eg select....etc'

Query query = entityManager.createQuery("from Registrant where membershipId = :membershipId");

However, this code works fine and without problems.

When putting the following line after it:

query.setParameter("membershipId", membershipId);

IntelliJ gives an error: Cannot resolve query parameter...

When using the query:

Query query = entityManager.createQuery("select r from Registrant r where r.membershipId = :membershipId");

IntelliJ doesn't give any problems, but why is the other syntax wrong?



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.