this tutorials will help you to create the DTO. First you have have to create the class EmployeeDTO.java package com.springschool.firstapp.dto; import org.hibernate.annotations.Type; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import java.util.ArrayList; public class EmployeeDTO { private int customerId; private String customerName; private String customerAddress; private double customerSalary; private ArrayList contactNumbers; private String nic; private boolean activeState; public EmployeeDTO() { …