diff --git a/src/main/java/com/entity/Account.java b/src/main/java/com/entity/Account.java new file mode 100644 index 0000000..3a30721 --- /dev/null +++ b/src/main/java/com/entity/Account.java @@ -0,0 +1,105 @@ +package com.example.entity; + +import javax.persistence.*; + +public class Account { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + @Column(name = "name") + private String name; + @Column(name = "password") + private String password; + @Column(name = "level") + private Integer level; + @Column(name = "sex") + private String sex; + @Transient + private String newPassword; + private String address; + @Column(name = "nickName") + private String nickName; + private String phone; + @Transient + private Double account; + + 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 String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public Integer getLevel() { + return level; + } + + public void setLevel(Integer level) { + this.level = level; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public String getNewPassword() { + return newPassword; + } + + public void setNewPassword(String newPassword) { + this.newPassword = newPassword; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getNickName() { + return nickName; + } + + public void setNickName(String nickName) { + this.nickName = nickName; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public Double getAccount() { + return account; + } + + public void setAccount(Double account) { + this.account = account; + } +}