Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Gregory Shrago
Subsystem
J2EE.Hibernate
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Taras Tielkes
    4 years ago (04 Aug 2007 04:08)
  • Updated by   root
    2 years ago (17 Jan 2010 20:50)
  • Jira: IDEADEV-22589
    (history, comments)
 
IDEA-40196 Ctrl-Shift-F7 in HQL console opens backing temporary file
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Highlight usages on an entity alias will open a temporary file "a.ql", and (also) highlight there.

Issue was resolved
Comments (8)
 
History
 
Linked Issues (?)
 
Taras Tielkes
  Taras Tielkes
14 Aug 2007 21:27
4 years ago
Same for 'Ctrl-Click' on an entity alias.
Alexey Kudravtsev
  Alexey Kudravtsev
16 Oct 2007 19:08
4 years ago
Cannot reproduce it here. Could you please post an example?
Taras Tielkes
  Taras Tielkes
16 Oct 2007 19:20
4 years ago
Alexey, I still see the problem in #7361. Let me know if description below is enough to reproduce.

A module with a Hibernate facet contains Java code like this:
Query q3 = session.createQuery("from User user order by user.firstName asc, user.lastName desc");

Invoking "Open HQL console" intention shows HQL console with query text:
from User user order by user.firstName asc, user.lastName desc


Now, invoke Ctrl-Shift-F7 on first "user" token.
Expected behavior: three occurrences of "user" highlighted

Actual behavior:
  • only first occurrence is highlighted
  • file "a.ql" is opened in editor, containing query text. In this opened file the _other two_ occurrences of "user" are highlighted.

Tested with IDEA 7.0.
Alexey Kudravtsev
  Alexey Kudravtsev
16 Oct 2007 21:04
4 years ago
Thanks Taras
Dmitry Kashin
  Dmitry Kashin
23 Oct 2007 20:35
4 years ago
What is HQL?
Dmitry Kashin
  Dmitry Kashin
23 Oct 2007 20:36
4 years ago
"What is HQL console?" I mean
Taras Tielkes
  Taras Tielkes
23 Oct 2007 20:45
4 years ago
"HQL Console" allows execution of HQL queries.

It's:
  • a bit hidden (accessible using intention action on HQL language)
  • a bit limited (no way to bind HQL parameters)
  • could be improved wrt usability (I'd prefer query text in regular editor tab. At the moment having both HQL console and results view open can get crowded)

However, it's a first version :)
Gregory Shrago
  Gregory Shrago
24 Oct 2007 13:17
4 years ago
Console is also accessible via context menu on Session Factory nodes in Java EE structure view