I have a OneToMany relation:
| @Entity | public class Order implements Serializable { | private List<Product> orderedProducts; | @OneToMany(cascade=CascadeType.ALL) | public List<Product> getOrderedProducts() { | return products; | } | } | When i do this: | Order order = manager.find(Order.class, orderid); | order.getOrderedProducts().clear(); | The products are not deleted from the database, instead their field orderid is updated to null !!! Is this normal ? Thanks, Alfonso Tamés View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931054#3931054 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931054 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user