[jboss-user] [EJB 3.0] - delete link from collection using ejb ql

santoso.n do-not-reply at jboss.com
Sun Oct 21 05:09:41 EDT 2007


Hi,

Is it possible to create an EJB query to remove a link to other object in a collection (one to many)?

e.g.
class A {
    @OneToMany
    List listOfB();
}

class B {
   Long id;
}

I would like to create a query which remove the link to object B which id is 1 from the collection of listOfB in object A but I don't know how.
I don't want to remove object B, I just want to remove the link.


Thanks,

Santoso

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097243#4097243

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097243



More information about the jboss-user mailing list