@Override
  public List<HtmlInput<?>> getInputs() {
    List<HtmlInput<?>> inputs = new ArrayList<HtmlInput<?>>();
    // Autoid: Field(entity=ProtocolApplication_ontol11768, name=autoid, type=int, auto=true,
    // nillable=false, readonly=false, default=null)
    {
      IntInput input =
          new IntInput("ProtocolApplication_ontol11768_autoid", getEntity().getAutoid());

      input.setLabel("autoid");
      input.setDescription("automatic id field to ensure ordering of mrefs");
      input.setNillable(false);
      input.setReadonly(isReadonly() || getEntity().isReadonly());
      input.setHidden(!isNewRecord());
      if (this.getCompactView().size() > 0 && !this.getCompactView().contains(input.getName())) {
        input.setCollapse(true);
      }

      inputs.add(input);
    }
    // OntologyReference: Field(entity=ProtocolApplication_ontol11768, name=ontologyReference,
    // type=xref[OntologyTerm.id], xref_label='name', auto=false, nillable=false, readonly=false,
    // default=null)
    {
      // TODO: when we have JPA this should become:
      // XrefInput input = new XrefInput("ProtocolApplication_ontol11768_ontologyReference",
      // getEntity().getOntologyReference());
      // create xref dummy object
      OntologyTerm dummy = null;
      if (getEntity().getOntologyReference_Id() != null) {
        dummy = new OntologyTerm();
        dummy.setId(getEntity().getOntologyReference_Id());
        dummy.setName(getEntity().getOntologyReference_Name());
      }
      XrefInput input =
          new XrefInput(
              "ProtocolApplication_ontol11768_ontologyReference",
              org.molgenis.core.OntologyTerm.class,
              dummy);

      input.setLabel("ontologyReference");
      input.setDescription("");
      input.setNillable(false);
      input.setReadonly(isReadonly() || getEntity().isReadonly());
      if (this.getHiddenColumns().contains(input.getName())) {
        input.setHidden(!isNewRecord());
      }
      if (this.getCompactView().size() > 0 && !this.getCompactView().contains(input.getName())) {
        input.setCollapse(true);
      }

      inputs.add(input);
    }
    // InvestigationElement: Field(entity=ProtocolApplication_ontol11768, name=InvestigationElement,
    // type=xref[ProtocolApplication.id], xref_label=, auto=false, nillable=false, readonly=false,
    // default=null)
    {
      // TODO: when we have JPA this should become:
      // XrefInput input = new XrefInput("ProtocolApplication_ontol11768_InvestigationElement",
      // getEntity().getInvestigationElement());
      // create xref dummy object
      ProtocolApplication dummy = null;
      if (getEntity().getInvestigationElement_Id() != null) {
        dummy = new ProtocolApplication();
        dummy.setId(getEntity().getInvestigationElement_Id());
        dummy.setName(getEntity().getInvestigationElement_Name());
      }
      XrefInput input =
          new XrefInput(
              "ProtocolApplication_ontol11768_InvestigationElement",
              org.molgenis.protocol.ProtocolApplication.class,
              dummy);

      input.setLabel("InvestigationElement");
      input.setDescription("");
      input.setNillable(false);
      input.setReadonly(isReadonly() || getEntity().isReadonly());
      if (this.getHiddenColumns().contains(input.getName())) {
        input.setHidden(!isNewRecord());
      }
      if (this.getCompactView().size() > 0 && !this.getCompactView().contains(input.getName())) {
        input.setCollapse(true);
      }

      inputs.add(input);
    }

    return inputs;
  }