Hey all, I've got a question about updating an m to n mapping. As an example lets say I have a User object with associated Roles. In my web page, I have all the fields for the user object and a list of checkboxes for all the different associated Roles. When I get back to my servlet, I can re-create the User object but all the have for the Roles is a list of ids.
Right now in my code, I delete all the records in the UserRole table (m to n relationship) for the user and re-create all the UserRole objects based on my Role ids. Is there any easier way to do this? Is there something I'm missing in the PB API that will help me to do this? Thanks, Graham ======================================================================== Graham Lounder - Java Developer CARIS Spatial Components Division [EMAIL PROTECTED] Phone: (506) 458-8533 Fax: (506) 459-3849 ======================================================================== NO BINDING CONTRACT WILL RESULT FROM THIS EMAIL UNTIL SUCH TIME AS A WRITTEN DOCUMENT IS SIGNED ON BEHALF OF THE COMPANY. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
