code: public void addHistory(History history) {
          if (getHistoryList() == null) {
              setHistoryList(new ArrayList<>());
          }
          getHistoryList().add(history);
      }
docs: Add history to this entity.
  
  @param history History to add.