Configuring the Generated Customer.java File

Goal: Modify the Customer.java file so that the KeywordFilterField displays the data properly.

  1. In Package Explorer, expand the SUP101Sample\src\SUP101 folder.
    Tip: If you do not see the SUP101 package, refresh the project.
  2. Open the Customer.java file, and add this code to the end of the file, after the line /** End code region: JSON methods **/:
    public String toString()
        {
            return getFname() + " " + getLname();
        }
  3. Save the Customer.java file.