package com.github.fastsql.dao;

import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDate;

/**
 * @author Jiazhi
 * @since 2017/4/2
 */
@Table(name = "student")
public class Student {

    @Id
    private Integer id;

    private String name;

    private Integer age;

    private LocalDate birthday;

    private String homeAddress;

    private String cityId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }


    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getHomeAddress() {
        return homeAddress;
    }

    public void setHomeAddress(String homeAddress) {
        this.homeAddress = homeAddress;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                ", homeAddress='" + homeAddress + '\'' +
                '}';
    }
}
@@ -230,23 +230,22 @@
 private 
-Integer
+String
  id;%0A%0A  
@@ -395,31 +395,30 @@
 %0A    public 
-Integer
+String
  getId() %7B%0A 
@@ -464,23 +464,22 @@
 d setId(
-Integer
+String
  id) %7B%0A 

修改com.github.fastsql.dao.Student的Id为String