The WebDSL statement

var newFriends := from User as f where ~firstName == "";

is converted to the following code:

java.util.List<calendar.domain.User> searchFriend_newFriends3 = hibSession.createQuery("from User as f where :param29").setParameter("param29", org.webdsl.tools.Utils.equal(searchFriend_firstName1, "")).list();

Running this code throws an HQL syntax error on :param29.

Submitted by Thomas Schaap on 24 March 2010 at 15:28

On 24 March 2010 at 16:15 Thomas Schaap commented:

Same problem occurs when trying for example

from User as user where user.credentials.isActive;

This leads to an illegal HQL statement. Correct would be

from User as user where user.credentials.isActive = true;

Log in to post comments