Using entities with a field named from in HQL statements causes invalid syntax errors since it tries to parse “from” as the keyword and does not realize its a column name.

Example:

Message
{

from -> User

}

var query := from Message as m where m.from = ~securityContext.principal;

This will give a syntax error “.from not expected”.

Submitted by André Vieira on 7 April 2011 at 13:18

Log in to post comments