reset password
Author Message
sikandarahmad
Posts: 19
Posted 11:24 Feb 09, 2015 |

Getting the following error while joining Departments and Plan table.

Any idea?

org.springframework.dao.InvalidDataAccessApiUsageException: Named query not found: from Department d join d.plans p where p.flightPlanId = :planid; nested exception is java.lang.IllegalArgumentException: Named query not found: from Department d join d.plans p where p.flightPlanId = :planid
    at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:296)
    at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:403)
    at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:58)
    at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)
    at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:163)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy36.getDepartmentFromPlan(Unknown Source)

cysun
Posts: 2935
Posted 12:31 Feb 09, 2015 |
sikandarahmad wrote:

Getting the following error while joining Departments and Plan table.

Any idea?

org.springframework.dao.InvalidDataAccessApiUsageException: Named query not found: from ...