package com.jeiker.demo.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

public class City implements Serializable{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String country;

    private String name;

    private String state;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return country
     */
    public String getCountry() {
        return country;
    }

    /**
     * @param country
     */
    public void setCountry(String country) {
        this.country = country;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return state
     */
    public String getState() {
        return state;
    }

    /**
     * @param state
     */
    public void setState(String state) {
        this.state = state;
    }
}
@@ -209,16 +209,89 @@
 izable%7B%0A
+%0A    private static final long serialVersionUID = 3198216694406487963L;%0A%0A
     @Id%0A
@@ -1273,10 +1273,274 @@
 e;%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        return %22City%7B%22 +%0A                %22id=%22 + id +%0A                %22, country='%22 + country + '%5C'' +%0A                %22, name='%22 + name + '%5C'' +%0A                %22, state='%22 + state + '%5C'' +%0A                '%7D';%0A    %7D
 %0A%7D

add serialVersionUID for city model