refactor code structure
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
49
src/main/java/wtf/beatrice/releasehive/model/User.java
Normal file
49
src/main/java/wtf/beatrice/releasehive/model/User.java
Normal file
@@ -0,0 +1,49 @@
|
||||
package wtf.beatrice.releasehive.model;
|
||||
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name="users")
|
||||
public class User
|
||||
{
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.UUID)
|
||||
private UUID uuid;
|
||||
|
||||
@Column
|
||||
private String username;
|
||||
|
||||
|
||||
@Column
|
||||
private String password;
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user