org.hibernate.hql.internal.ast.QuerySyntaxException: Path expected for join! [from it.jack.fdd.domain.Staff inner join RtStaffDispenser on Staff.idstaff = RtStaffDispenser.idrtStaffDispenser]


Solutions on the web

Solution icon of stackoverflow
Path expected for join! [from it.jack.fdd.domain.Staff inner join RtStaffDispenser on Staff.idstaff = RtStaffDispenser.idrtStaffDispenser]

Solution icon of stackoverflow
via Stack Overflow by Casper
, 6 months ago
Path expected for join! [select op.option_Value from com.datagear.ECM.Model.Options op INNER JOIN Task_Options TSOP ON op.Option_ID = TSOP.Option_IDINNER JOIN Task tsk ON tsk.task_ID = TSOP.Task_ID Where Tsk.task_ID = 1]

Solution icon of stackoverflow
Path expected for join! [select camd.conditionActionMaps from com.vuelogix.collygo.data.entities.DatapointTemplateCo nditionActionMapDetailsMap dtcamdm join ConditionActionMapDetail camd on dtcamdm.conditionActionMapDetail=camd.idconditionActionMapDetails where dtcamdm.datapointTemplateId=:t emplateid and camd.conditionId=:conditionid]

Solution icon of stackoverflow
Path expected for join! [select p1 from com.newco.models.Signal p1 LEFT JOIN Signal p2 ON (p1.zoneId = p2.zoneId AND p1.createdAt < p2.createdAt) where p2.id is null AND p1.userId=?1 AND p1.pid=?2]

Solution icon of hibernate
via Hibernate JIRA by Emond Papegaaij, 1 year ago
Invalid path: 'generatedAlias2.myvalue' [select generatedAlias0 from org.hibernate.bugs.RefEntity as generatedAlias0 inner join generatedAlias0.other as generatedAlias1 where generatedAlias2.myvalue=42]

Solution icon of hibernate
Invalid path: 'generatedAlias2.name' [select generatedAlias0 from org.hibernate.bugs.entity.Allocation as generatedAlias0 inner join generatedAlias0.resource as generatedAlias1 where generatedAlias2.name=:param0]

Solution icon of stackoverflow
unexpected token: on near line 1, column 98 [select a.cod_ala, count(cod_consulta) as max from org.model.Consulta as c inner join Medico as m on m.cod_medico = c.cod_medico inner join Ala as a on a.cod_ala = m.cod_ala group by a.cod_ala]

Solution icon of hibernate
via Hibernate JIRA by Emond Papegaaij, 1 year ago
Invalid path: 'generatedAlias2.myvalue' [select generatedAlias0 from org.hibernate.bugs.RefEntity as generatedAlias0 inner join generatedAlias0.other as generatedAlias1 where generatedAlias2.myvalue=42]

Solution icon of stackoverflow
could not resolve property: customerNumber of: com.scheduler.model.Order [select c from com.scheduler.model.Customer c INNER JOIN com.scheduler.model.Order o ON c.customerNumber=o.customerNumber where c.city=:city]

Solution icon of hibernate
via Hibernate JIRA by Sergey Lysenko, 1 year ago
with-clause referenced two different from-clause elements [SELECT v FROM com.imc.lpu.core.entity.Visit v LEFT JOIN v.idSluchMed s LEFT JOIN s.idInsured i LEFT JOIN i.histInvalidList h ON h.begdate < v.visitDate]

Stack trace

org.hibernate.hql.internal.ast.QuerySyntaxException: Path expected for join! [from it.jack.fdd.domain.Staff inner join RtStaffDispenser on Staff.idstaff = RtStaffDispenser.idrtStaffDispenser]
	at org.hibernate.hql.internal.ast.QuerySyntaxException.convert(QuerySyntaxException.java:91)
	at org.hibernate.hql.internal.ast.ErrorCounter.throwQueryException(ErrorCounter.java:109)
	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:284)
	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:206)
	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:158)
	at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:126)
	at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:88)
	at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:190)
	at org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:301)
	at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:236)
	at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1800)
	at it.jack.fdd.dao.impl.StaffDaoImpl.getAllA(StaffDaoImpl.java:95)
	at it.jack.fdd.tests.StaffDaoImplTest.testGetAllA(StaffDaoImplTest.java:62)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

11 times, 2 months ago
Once, 3 months ago
16 times, 3 months ago
2 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
39 more bugmates