[jboss-user] [EJB 3.0] - Re: EJb 3.0 primary key loose ?

2006-10-16 Thread ojacobson
Try this: in the CustomerFacade: public Orders save(Orders orders) { | em.persist(orders); | return orders; | } Then your persist code looks like // make persistent | customer = customersFacade.save(customer); View the original post : http://www.jboss.com/index.html?module=bb&op=v

[jboss-user] [EJB 3.0] - Re: EJb 3.0 primary key loose ?

2006-09-22 Thread stephan.opitz
/** * Makes a Orders object persistent * * @param orders *Orders object */ public void save(Orders orders) { em.persist(orders); } needknowledge of getting id into object additionally could i say jav

[jboss-user] [EJB 3.0] - Re: EJb 3.0 primary key loose ?

2006-09-20 Thread epbernard
save method impl? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973083#3973083 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973083 ___ jboss-user mailing list jboss-user@li

[jboss-user] [EJB 3.0] - Re: EJb 3.0 primary key loose ?

2006-09-19 Thread stephan.opitz
and interface defined hier import java.util.Date; import de.Test.entity.Orders; public interface OrdersFacade { /** * Makes a Orders object persistent * * @param order *Orders object */ public void save(Orders order); an

[jboss-user] [EJB 3.0] - Re: EJb 3.0 primary key loose ?

2006-09-19 Thread stephan.opitz
the call for my ejbs from my application is local but at this point i'm in the ejbs and have access only access to injected ejbs private @EJB OrdersFacade ordersFacade; all are stateless, except sessionFacade which i set in my application to get the correct on and have access to

[jboss-user] [EJB 3.0] - Re: EJb 3.0 primary key loose ?

2006-09-19 Thread epbernard
you need to show the code for // make persistent customersFacade.save(customer); local or remote bean? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972778#3972778 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972