Embedded HQL queries are currently not checked, and there is no type information being attached.

The result type is incorrect for a query such as:

select t
from Issue as i left join i.tags as t
Submitted by Danny Groenewegen on 13 September 2010 at 10:34

On 13 September 2010 at 10:56 Sander Vermolen commented:

Perhaps an idea to disable type checking of HQL queries until this issue is fixed? No type check is better than an incorrect one. Would be nice to use these queries at ‘my own risk’.


On 13 September 2010 at 14:29 Danny Groenewegen commented:

I’ve removed the cast check in the specific case of casting a query to allow working around current limitations:

(select t
from Issue as i left join i.tags as t) as List<Tag>

On 26 January 2012 at 15:04 Eelco Visser commented:

Another problem:


var subs := select sub from AssignmentSubmission as sub
where sub.assignment = ~this and sub.student = ~student;

error when ‘as sub’ left out.

Log in to post comments