Exemplo n.º 1
0
  public Advertisement removeAdvertisement(Advertisement advertisement) {
    getAdvertisements().remove(advertisement);
    advertisement.setPlace(null);

    return advertisement;
  }
Exemplo n.º 2
0
  public Advertisement addAdvertisement(Advertisement advertisement) {
    getAdvertisements().add(advertisement);
    advertisement.setPlace(this);

    return advertisement;
  }