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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user