title: HQL unexpected AST node: :
body: <p>My code is failing to inject the below repository.  Based on the stack trace, it seems my HQL syntax is invalid, but I'm not sure what I've done wrong.</p>
  
  <pre><code>@Repository
   public interface JobSetRepository extends JpaRepository&lt;JobSetEntity, Integer&gt; {
      @Modifying
      @Transactional
      @Query("UPDATE JobSetEntity SET workstation = :workstation, workflowProcess = :workstation.workflowProcess WHERE id = :jobSet.id")
      public Boolean updateWorkstation(@Param("jobSet") JobSetEntity jobSet, @Param("workstation") Workstation workstation);
  
      @Modifying
      @Transactional
      @Query("UPDATE JobSetEntity SET workflowProcess = :workflowProcess, workstation = null WHERE id = :jobSet.id")
      public Boolean updateWorkflowProcess(@Param("jobSet") JobSetEntity jobSet, @Param("workflowProcess") WorkflowProcess workflowProcess);
  }
  </code></pre>
  
  <p>stack trace:</p>
  
  <pre><code>12:57:58,692 ERROR main org.hibernate.hql.internal.ast.ErrorCounter:54 - &lt;AST&gt;:1:111: unexpected AST node: :
  12:57:58,693 ERROR main org.hibernate.hql.internal.ast.ErrorCounter:50 - &lt;AST&gt;:1:111: unexpected AST node: :
  &lt;AST&gt;:1:111: unexpected AST node: :
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.addrExpr(HqlSqlBaseWalker.java:4680)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.addrExprLhs(HqlSqlBaseWalker.java:5114)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.addrExpr(HqlSqlBaseWalker.java:4575)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:1260)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.newValue(HqlSqlBaseWalker.java:1211)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.assignment(HqlSqlBaseWalker.java:1033)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.setClause(HqlSqlBaseWalker.java:747)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.updateStatement(HqlSqlBaseWalker.java:367)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:255)
      at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:248)
      at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:183)
      at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)
      at org.hibernate.engine.query.spi.HQLQueryPlan.&lt;init&gt;(HQLQueryPlan.java:105)
      at org.hibernate.engine.query.spi.HQLQueryPlan.&lt;init&gt;(HQLQueryPlan.java:80)
  </code></pre>
  
  <p><strong>Update:</strong> I'm also getting this error with this query:</p>
  
  <pre><code>@Query("UPDATE OrderEntity SET inProduction = :order.inProduction WHERE OrderEntity.id = :order.id")
  void updateInProduction(@Param("order") OrderEntity order);
  </code></pre>
  
  <p>I updated my versions to the latest:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
          &lt;version&gt;4.2.5.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
          &lt;version&gt;4.2.5.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-jpa&lt;/artifactId&gt;
          &lt;version&gt;1.3.4.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>Update:</strong>  I'm also getting this error with:</p>
  
  <pre><code>@Query("SELECT oe FROM OrderEntity oe WHERE oe.id = :orderProductEntity.id")
  OrderEntity findBy(@Param("orderProductEntity") OrderProductEntity orderProductEntity);
  </code></pre>