[EJB 3.0] - Aliases in Queries
by micho
Hi,
I´m not sure if this or the "persistence" group is the right one.
I created a Query like this
erg = (List<User>) em.createQuery( "from User u where (u.peter = :name)").setParameter ("name", "pete").getResultList();
| and it wors as expected.
If I change it an introduce an alias
erg = (List<User>) em.createQuery( "from User where (peter = :name)").setParameter ("name", "pete").getResultList();
| and it works.
|
I get an exception
javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.QueryException: could not resolve property: peter of: com.entity.User [from com.entity.User as u where (u.peter = :name)]
|
what´s wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021745#4021745
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021745
19Â years, 1Â month
[JBoss jBPM] - Re: jbpmContext in Web Application
by kukeltje
anonymous wrote : You mean copying them from the task to the process instance?
Correct
anonymous wrote : But if I can not hold on to a task across contexts then I have to copy any working task variables out of the task and into my own session container, is that correct?
Correct again
anonymous wrote : Again, I guess this is not that big of a deal since I would not use the task or process instance as a container for application data only for values that are relevant to process flow.
As do we, good choice, I get the impression you ' see' it ;-)
anonymous wrote : The BPM engine that I have been using has a logon/logoff session model and I guess I just got used to being able to retain whatever process objects I wanted in the session.
|
I know one like this as well from the past... SW?
anonymous wrote : It is just a matter of understanding jBPM operational requirements and changing my thinking. Your comments have been helpful.
Great.... good luck
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021743#4021743
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021743
19Â years, 1Â month