/**
   * Adds the garden to the database. Also notifies the appropriate model listeners.
   *
   * @param garden the garden
   * @return the garden that was added
   * @throws SystemException if a system exception occurred
   */
  @Indexable(type = IndexableType.REINDEX)
  public Garden addGarden(Garden garden) throws SystemException {
    garden.setNew(true);

    return gardenPersistence.update(garden, false);
  }
  /**
   * Updates the garden in the database or adds it if it does not yet exist. Also notifies the
   * appropriate model listeners.
   *
   * @param garden the garden
   * @param merge whether to merge the garden with the current session. See {@link
   *     com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session,
   *     com.liferay.portal.model.BaseModel, boolean)} for an explanation.
   * @return the garden that was updated
   * @throws SystemException if a system exception occurred
   */
  @Indexable(type = IndexableType.REINDEX)
  public Garden updateGarden(Garden garden, boolean merge) throws SystemException {
    garden.setNew(false);

    return gardenPersistence.update(garden, merge);
  }