My Laziness is Getting the Better of Me

From: Gary Jarrel (garyjarre..mail.com)
Date: Thu Jun 29 2006 - 21:24:49 EDT

  • Next message: Michael Gentry: "Re: My Laziness is Getting the Better of Me"

    Hey All

    It's Friday, and I guess my thinking process has already switched into
    weekend mode, but whats the best way to clear all records in a
    relationship. I.e. the following objects

    Slideshow -> (to may) -> Image (join table in betwen)

    Slideshow.getImages() returns a list of images, how can I easily clear
    this list, cause the good old iterate over the list and remove using
    slideshow.removeFromImages(Image) doesn't seem to work as the list
    decreases hence sending the cursor off.

    Sorry if the question is too obvious. :)

    - garyj



    This archive was generated by hypermail 2.0.0 : Thu Jun 29 2006 - 21:25:13 EDT