From 5b2d7ecd3dc18fb45cff7ab3b6074f59e4b3da5c Mon Sep 17 00:00:00 2001 From: pho6e2qjw <1563847437@qq.com> Date: Tue, 25 Jun 2024 23:27:36 +0800 Subject: [PATCH] Add SysUser.java --- SysUser.java | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 SysUser.java diff --git a/SysUser.java b/SysUser.java new file mode 100644 index 0000000..6025c89 --- /dev/null +++ b/SysUser.java @@ -0,0 +1,45 @@ +//用户管理Java类 +package com.power.travel.model; + + +import javax.persistence.*; + +@Entity +@Table(name = "sys_user") +public class SysUser { + + + @Id + @GeneratedValue(strategy= GenerationType.IDENTITY) + @Column(name = "id") + private Integer id; + @Column(name = "username") + private String username; + @Column(name = "password") + private String password; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + +}