HQL unexpected AST node: :

I would recommend you to set the property nativeQuery to true

@Query(value = "SELECT t.id FROM team as t JOIN project AS p ON p.team_id",
 nativeQuery = true)


When you use this:

:workstation.workflowProcess

You're defining a parameter, so you can't use that notation, but you must use a variable as:

:workstation
:workflowProcess

and so on


Actually error is in NamedQuery Syntax ,You cannot do like
workflowProcess = :workstation.workflowProcess
instead it should be like
workflowProcess = :workflowProcess


Sadly, you cannot do :order.inProduction (or :foo.bar in general). Reference.

Tags:

Java

Hql