hql query level validation fails in createQuery("hql query") when "hql
query" falls in more than one line
---------------------------------------------------------------------------------------------------------
Key: HBX-1122
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1122
Project: Hibernate Tools
Issue Type: Sub-task
Reporter: radhakrishna
Here is when it works and when it does not:
createQuery(''hql query") seems to be working ONLY as long as the hql query
falls in the same line as in the following case, I am accessing an invalid field
nonExistingField rather without a getter method from SomeObj class.
createQuery("from SomeObj someObj where someObj.nonExistingField is null"); //
throws errors
createQuery("from SomeObj someObj where " +
"someObj.nonExistingField is null"); // DOES NOT throw errors
so when the query goes into the second line, which is true in most of the cases, it does
not show errors.
The same issue applies when using the hql autocompleter while writing the query within the
createQuery("hql query"), using ctrl + space, it helps only in the first line
and does not in the subsequent lines.
I use Eclipse Europa and Ganymede with Hibernate Tools 3.2.3
Help please!
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira