content: package com.shopping.entity;
  
  import org.hibernate.annotations.GenericGenerator;
  
  import javax.persistence.*;
  
  /**
   * Created by 14437 on 2017/3/1.
   */
  @Entity
  @Table(name="user_detail")
  public class UserDetail {
      private int id;
      private String password;
      private String phoneNumber;
      private int sex;
      private String birthday;
      private String postNumber;
      private String address;
      private String registerTime;
  
      @Id
      @GenericGenerator(name = "generator", strategy = "assigned")
      @GeneratedValue(generator = "generator")
  
      @Column(name="id")
      public int getId() {
          return id;
      }
  
      public void setId(int id) {
          this.id = id;
      }
  
      @Column(name="password")
      public String getPassword() {
          return password;
      }
  
      public void setPassword(String password) {
          this.password = password;
      }
      @Column(name="phone_number")
      public String getPhoneNumber() {
          return phoneNumber;
      }
  
      public void setPhoneNumber(String phoneNumber) {
          this.phoneNumber = phoneNumber;
      }
  
      @Column(name="sex")
      public int getSex() {
          return sex;
      }
  
      public void setSex(int sex) {
          this.sex = sex;
      }
  
      @Column(name="birthday")
      public String getBirthday() {
          return birthday;
      }
  
      public void setBirthday(String birthday) {
          this.birthday = birthday;
      }
  
      @Column(name="post_number")
      public String getPostNumber() {
          return postNumber;
      }
  
      public void setPostNumber(String postNumber) {
          this.postNumber = postNumber;
      }
  
      @Column(name="address")
      public String getAddress() {
          return address;
      }
  
      public void setAddress(String address) {
          this.address = address;
      }
  
      @Column(name="register_time")
      public String getRegisterTime() {
          return registerTime;
      }
  
      public void setRegisterTime(String registerTime) {
          this.registerTime = registerTime;
      }
  }
  