我有一个产生错误的EJBQL请求:
EJBQL请求:
javax.persistence.Query multipleSelect= em.createQuery("SELECT p.pname,j.descriptor from Project p LEFT OUTER JOIN Nodeassociation n ON p.id=n.sourceNodeId and n.sinkNodeEntity='WorkflowScheme' LEFT OUTER JOIN Workflowscheme w ON n.sourceNodeId = w.id LEFT OUTER JOIN Jiraworkflows j ON w.name=j.workflowname; " );
错误:
line 1:244 mismatched character ' ' expecting set ''..''
An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing the query [SELECT p.pname,j.descriptor from Project p LEFT OUTER JOIN Nodeassociation n ON p.id=n.sourceNodeId and n.sinkNodeEntity='WorkflowScheme' LEFT OUTER JOIN Workflowscheme w ON n.sourceNodeId = w.id LEFT OUTER JOIN Jiraworkflows j ON w.name=j.workflowname; ].
Internal Exception: org.eclipse.persistence.internal.libraries.antlr.runtime.EarlyExitException
更新 去除半音后:
An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing the query [SELECT p.pname,j.descriptor from Project p LEFT OUTER JOIN Nodeassociation n ON p.id=n.sourceNodeId and n.sinkNodeEntity='WorkflowScheme' LEFT OUTER JOIN Workflowscheme w ON n.sourceNodeId = w.id LEFT OUTER JOIN Jiraworkflows j ON w.name=j.workflowname ].
Internal Exception: org.eclipse.persistence.internal.libraries.antlr.runtime.EarlyExitException
更新
An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing the query [SELECT p.pname,j.descriptor from Project p LEFT OUTER JOIN Nodeassociation n ON p.id=n.sourceNodeId n.sinkNodeEntity='WorkflowScheme' LEFT OUTER JOIN Workflowscheme w ON n.sourceNodeId = w.id LEFT OUTER JOIN Jiraworkflows j ON w.name=j.workflowname ].
Internal Exception: org.eclipse.persistence.internal.libraries.antlr.runtime.EarlyExitException