mirror of
https://github.com/cekis/swg-api
synced 2026-01-16 19:05:10 -05:00
Update UasUser.java
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
package swg.entity;
|
||||
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
import org.hibernate.annotations.CreationTimestamp;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.Email;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import javax.validation.constraints.*;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
@Entity
|
||||
@Table(name = "UAS_USERS",
|
||||
@@ -33,6 +35,21 @@ public class UasUser {
|
||||
@Enumerated(EnumType.STRING)
|
||||
private UserRole userrole;
|
||||
|
||||
@Column(name = "CREATED")
|
||||
@NotBlank
|
||||
@CreationTimestamp
|
||||
private Timestamp createdTime;
|
||||
|
||||
@Column(name = "GOD_LEVEL")
|
||||
@ColumnDefault("0")
|
||||
@NotBlank
|
||||
@Min(0)
|
||||
@Max(100)
|
||||
private int godLevel;
|
||||
|
||||
@Column(name = "STATION_ID")
|
||||
private long stationId;
|
||||
|
||||
public UasUser() {
|
||||
}
|
||||
|
||||
@@ -81,4 +98,30 @@ public class UasUser {
|
||||
public void setUserRole(UserRole userRole) {
|
||||
this.userrole = userRole;
|
||||
}
|
||||
|
||||
public Timestamp getCreatedTime()
|
||||
{
|
||||
return createdTime;
|
||||
}
|
||||
|
||||
public int getGodLevel()
|
||||
{
|
||||
return godLevel;
|
||||
}
|
||||
|
||||
public void setGodLevel(int godLevel)
|
||||
{
|
||||
this.godLevel = godLevel;
|
||||
}
|
||||
|
||||
public long getStationId()
|
||||
{
|
||||
return stationId;
|
||||
}
|
||||
|
||||
public void setStationId(long stationId)
|
||||
{
|
||||
this.stationId = stationId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user