Пример #1
0
  public Advertisement removeAdvertisement(Advertisement advertisement) {
    getAdvertisements().remove(advertisement);
    advertisement.setPlace(null);

    return advertisement;
  }
Пример #2
0
  public Advertisement addAdvertisement(Advertisement advertisement) {
    getAdvertisements().add(advertisement);
    advertisement.setPlace(this);

    return advertisement;
  }