code: @Programmatic // for use by fixtures
      public SummernoteEditorToDoItem newToDo(
              final String description,
              final SummernoteEditorToDoItem.Category category,
              final SummernoteEditorToDoItem.Subcategory subcategory,
              final String userName,
              final LocalDate dueBy,
              final BigDecimal cost,
              final BigDecimal previousCost) {
          final SummernoteEditorToDoItem toDoItem = container.newTransientInstance(SummernoteEditorToDoItem.class);
          toDoItem.setDescription(description);
          toDoItem.setCategory(category);
          toDoItem.setSubcategory(subcategory);
          toDoItem.setOwnedBy(userName);
          toDoItem.setDueBy(dueBy);
          toDoItem.setCost(cost);
          toDoItem.setPreviousCost(previousCost);
  
          container.persist(toDoItem);
          container.flush();
  
          return toDoItem;
      }
docs: //////////////////////////////////////