[jboss-user] [JBoss Seam] - Re: Facotry-session and bean-conversation
pete.muir@jboss.org
do-not-reply at jboss.com
Fri Sep 7 05:50:16 EDT 2007
Not with @DataModel, you could just @Factory e.g.
@Stateful
| @Name("ListOrder")
| @Scope(CONVERSATION)
| public class OrderManager implements OrderManagerLocal, Serializable {
|
| @Factory(value="orders", scope = SESSION)
| public void findOrder(){
|
| Query query;
|
| query = em.createQuery("select o from Order o where o.customer=#{currentContact.customer}");
|
|
| orders = (List<Order>) query.getResultList();
|
|
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082046#4082046
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082046
More information about the jboss-user
mailing list