[jboss-user] [JBoss Seam] - Re: Facotry-session and bean-conversation
yohann49
do-not-reply at jboss.com
Fri Sep 7 08:57:40 EDT 2007
I found the solution. I forgot the "return orders".
| @Factory(value="orders", scope = SESSION)
| public List<Order> findOrder(){
|
| Query query;
|
| query = em.createQuery("select o from Order o where o.customer=#{currentContact.customer}");
|
|
| orders = (List<Order>) query.getResultList();
| return orders;
|
| }
|
Thanks !!!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082135#4082135
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082135
More information about the jboss-user
mailing list