[jboss-user] [JBoss jBPM] - Re: How to delete Memberships

2007-03-19 Thread JimKnopf
Thanks for the fast answer, and sorry for the delay but i was ill. Hmm, after thinking a little about it, i think u are right and Hibernate will manage this for me. Thank u View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029223#4029223 Reply to the post :

[jboss-user] [JBoss jBPM] - Re: How to delete Memberships

2007-03-14 Thread JimKnopf
The deleting on the Database is not realy the Problem. The Problem is, that the Memberships are still in use by other Objects like User and Group whitch are have a Hash-Table of there memberships. And the User didn't have a methode to delete a Membership. Only Group have setMemberships. The

[jboss-user] [JBoss jBPM] - Re: How to delete Memberships

2007-03-14 Thread Olivier_Debels
I thought that doing a session.delete of a membership will also remove this membership out of the collections in user and group. This because the membership is a hibernate object and calling delete removes the object from the session (so also from the mapped collection in the same hibernate

[jboss-user] [JBoss jBPM] - Re: How to delete Memberships

2007-03-13 Thread JimKnopf
Come on, is there realy no one who can help me? I think it must be possible by deleting the Membership on the Database with this: delete from org.jbpm.identity.Membership as m where m.id = ?1 and delete the Membership from the User and Group Object in JBPM ... BUT I can't remove a Membership

[jboss-user] [JBoss jBPM] - Re: How to delete Memberships

2007-03-13 Thread Olivier_Debels
Can't you let hibernate take care of this? I mean you can do Session.delete(membership)... Haven't tried it though. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4027485#4027485 Reply to the post :