This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243320

Summary: Please provide overall JPQL code completion
Product: javaee Reporter: daedalus
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description daedalus 2014-03-27 11:20:30 UTC

first of all let me say I think the JPQL Support of Netbeans is fantastic. And thats why I'm very sad that most of the time I cannot benefit from it. 

It seems that Netbeans does only recognize String as  JQPL queries in the @NamedQuery annotation or in the createQuery() Method of the EntityManager. 

However in every project I'm working in we use a wrapper class for the EntityManager and do not use named queries. But we do write a lot of JPQL. 

I understand that you cannot scan every String in my code to check if it might be a jpql query. What would really help would be a solution for manually telling Netbeans: "Hey I'm writing JPQL please support me!" 

Maybe right click a String and click "enable jqpl support" or some keyboard shortcut? Whatever you think it is best. 

I'm sure this feature would help a lot of people.