Re: Removing Object from list but not from database

From: Dhruti Ramani (dhrutiraman..ahoo.com)
Date: Tue Jun 28 2005 - 09:37:09 EDT

  • Next message: Emre Yilmaz: "Relation null??"

    I am apologize for asking really stupid question here. I don't know why I even asked this question here.
     
    Sorry and Thanks Robert
    Denna

    Robert Zeigler <rdzeigl...arizona.edu> wrote:
    So... it sounds like...
    UserRoles<-->SystemUser

    Every system user can have multiple roles.
    Every role can be associated with multiple users.
    You have a userrole from which you want to remove user x.
    So, userx will no longer be able to play the role of, for example, admin.
    But, you don't want to delete userx, because userx may still be in the
    role of "genericuser".
    Right?
    Then, what about...
    userRole.removeFromUsersInThisRole(systemUser);
    ? :)

    Robert

    Dhruti Ramani wrote:
    > Hi,
    >
    > In our application we have SystemUser and UserRole objects and the
    > relation between them is many to many. Now UserRole has list of
    > systemUsers(of type SystemUser) called "usersInThisRole". I want to
    > delete particular system user from this list but SystemUser table should
    > keep that user because some other UserRole may have that particular user.
    >
    > How do I do this?
    >
    > Thanks,
    > Denna
    >
    > ------------------------------------------------------------------------
    > Yahoo! Mail Mobile
    > Take Yahoo! Mail with you!
    >
    > Check email on your mobile phone.

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com



    This archive was generated by hypermail 2.0.0 : Tue Jun 28 2005 - 09:37:13 EDT