java.lang.Object
org.junittest.allgraphqlcases_serverpojo_springconfiguration.TList
All Implemented Interfaces:
IList

@Entity public class TList extends Object implements IList
Author:
generated by graphql-java-generator
See Also:
  • Constructor Details

    • TList

      public TList()
      Object content, generated by the 'object_content.vm.java' default template from graphql-java-generator
  • Method Details

    • setList

      public void setList(List<IFoo1> list)
      Specified by:
      setList in interface IList
    • setListTFoo1

      public void setListTFoo1(List<TFoo1> list)

      As the type declared in the class is not inherited from one of the implemented interfaces, we need a dedicated setter.
      As the GraphQL type of this field is a list of items that are not of the same type as the field defined in the implemented interface, we need to have a dedicated setter with a specific name. This is due to Java that does type erasure on parameterized types (for compatibility reasons with older java versions). As Java can't detect at runtime the type of the items of the list, it can't decide which setter to call. To overcome this issue, this setter has a dedicated name.
    • getList

      public List<IFoo1> getList()
      Specified by:
      getList in interface IList
    • getListTFoo1

      public List<TFoo1> getListTFoo1()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static TList.Builder builder()