[jboss-user] [JBoss jBPM] - Re: Task Assignment Expression, Hibernate Parameter Error
johnhurtchan
do-not-reply at jboss.com
Fri Nov 14 18:38:33 EST 2008
I look at the source for IdentitySession.java and see this code...
It looks like "groupName" is a parameter as set by query.setString(). So what can I do to fix this problem? Please help. Thanks.
public Group getGroupByName(String groupName)
{
Group group = null;
Query query = session.createQuery("select g " + "from org.jbpm.identity.Group as g " + "where g.name = :groupName");
query.setString("groupName", groupName);
List groups = query.list();
if ((groups != null) && (groups.size() > 0))
{
group = (Group)groups.get(0);
}
return group;
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189550#4189550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189550
More information about the jboss-user
mailing list