2 Replies Latest reply on Jun 1, 2006 9:51 AM by hosierdm

    Deleting from Identity Module

    hosierdm

      I'm trying to add code to the IdentitySession class to delete users and groups. I did some research and figured out that when you want to do a delete using Hibernate, you're supposed to get the object and pass that to the delete method. So I came up with the following code:

      User user = getUserByName(userName);
      session.delete(user);

      However, when I tried to delete a User, it deleted every single user in my database, along with every group that had a membership. Is this a jbpm Hibernate configuration problem? Did I do something wrong? I posted this here since I'm messing directly with the jbpm classes, so hopefully that's ok.