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
/**
* 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
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
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
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
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