The following will also fail:
{{session.createQuery( "select e from Example e where e.user=:u" ).setParameter( "u", new User() ).list() }}