[jboss-user] [JBoss jBPM] - Re: JBPM Identity Component - QuerySyntaxException: JBPM_ID_
varada
do-not-reply at jboss.com
Mon Sep 4 12:41:16 EDT 2006
Thanks for responding.
If I do
Query jbpmquery = em.createQuery("select u.name from org.jbpm.identity.User as u where u.name:= username");
jbpmquery.setParameter("name", username);
User found = (User)jbpmquery.getSingleResult();
I get the following error.
22:06:29,231 WARN [QuerySplitter] no persistent classes found for query class:
select u.name from org.jbpm.identity.User as u where u.name:= username
22:06:29,231 ERROR [STDERR] javax.persistence.PersistenceException: org.hibernat
e.HibernateException: could not locate named parameter [name]
22:06:29,231 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.t
hrowPersistenceException(AbstractEntityManagerImpl.java:567)
22:06:29,231 ERROR [STDERR] at org.hibernate.ejb.QueryImpl.setParameter(Quer
yImpl.java:149)
Some how the identity classes are not loaded..
Any suggesstions??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969266#3969266
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969266
More information about the jboss-user
mailing list