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

Key: IDEADEV-22589
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Gregory Shrago
Reporter: Taras Tielkes
Votes: 0
Watchers: 1
Operations

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

Ctrl-Shift-F7 in HQL console opens backing temporary file

Created: 04 Aug 07 03:08   Updated: 06 Dec 07 18:52
Component/s: J2EE.Hibernate
Fix Version/s: Selena 7.0.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,111
Fixed in build: 7,507


 Description  « Hide
Highlight usages on an entity alias will open a temporary file "a.ql", and (also) highlight there.

 All   Comments   Work Log   Change History      Sort Order:
Taras Tielkes - 14 Aug 07 20:27
Same for 'Ctrl-Click' on an entity alias.

Alexey Kudravtsev - 16 Oct 07 18:08
Cannot reproduce it here. Could you please post an example?

Taras Tielkes - 16 Oct 07 18:20
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 - 16 Oct 07 20:04
Thanks Taras

Dmitry Kashin - 23 Oct 07 19:35
What is HQL?

Dmitry Kashin - 23 Oct 07 19:36
"What is HQL console?" I mean

Taras Tielkes - 23 Oct 07 19:45
"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 - 24 Oct 07 12:17
Console is also accessible via context menu on Session Factory nodes in Java EE structure view