[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-896) Support multi-query HQL editor environment

Joseph Marques (JIRA) noreply at atlassian.com
Fri Feb 23 10:17:32 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-896?page=comments#action_26247 ] 

Joseph Marques commented on HBX-896:
------------------------------------

Yeah, semi-colon is fine.  It'll probably be adopted more naturally by people who are used to sending and separating multiple sql statements in the same batch to the database.

I still think it would be nice to support comments in the HQL editor, if not to generate tab names for the query results, then at least to help summarize a very complex query in more natural language.  Sometimes I even start by writing out the query as a sentence and then translate it bit by bit.  However, if the query has errors the first time around, I'd like to still keep the comment there to read and compare from, which is why I think there is value to supporting these.

> Support multi-query HQL editor environment
> ------------------------------------------
>
>          Key: HBX-896
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-896
>      Project: Hibernate Tools
>         Type: New Feature

>     Versions: 3.2beta8
>     Reporter: Joseph Marques
>  Attachments: hqlSnippet.png
>
>
> Allow multiple select statements in the HQL editor.
> Then a user could:
> * highlight-run the desired query, or
> * click-run, to run all of the queries
> The different sections could be seperated by some special character or phrase, say, "--" (two dashed), to signify that lexing should begin anew after the special character.
> Even better, the editor could support user-comments above the start of each query.  It would be optional above the first one (so that the HQL editor can be used identically to how it used to when it only worked for single queries), but required for any other queries in the same editor.  This way, the lexar still knows when to break and start over.  (see attachedment)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list