content: package com.us.example.bean;
  
  import javax.persistence.Entity;
  import javax.persistence.GeneratedValue;
  import javax.persistence.Id;
  import javax.persistence.Table;
  import java.io.Serializable;
  
  /**
   * Created by yangyibo on 17/1/13.
   */
  @Entity
  @Table(name = "Person")
  public class Person implements Serializable {
  
      private static final long serialVersionUID = 133938246231808718L;
  
      @Id
      @GeneratedValue
      private Long id;
  
      private String name;
  
      private Integer age;
  
      private String address;
  
      public Person() {
          super();
      }
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long 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 String getAddress() {
          return address;
      }
  
      public void setAddress(String address) {
          this.address = address;
      }
  
      public Person(Long id, String name, Integer age, String address) {
          super();
          this.id = id;
          this.name = name;
          this.age = age;
          this.address = address;
      }
  
      @Override
      public String toString() {
          return "Person{" +
                  "id=" + id +
                  ", name=" + name +
                  ", age=" + age +
                  ", address=" + address +
                  '}';
      }
  
  }
  
  