mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2024-11-04 23:10:11 +01:00
62 lines
1.1 KiB
Java
62 lines
1.1 KiB
Java
package stirling.software.SPDF.model;
|
|
|
|
import java.util.Date;
|
|
|
|
import jakarta.persistence.Column;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.Table;
|
|
|
|
@Entity
|
|
@Table(name = "persistent_logins")
|
|
public class PersistentLogin {
|
|
|
|
@Id
|
|
@Column(name = "series")
|
|
private String series;
|
|
|
|
@Column(name = "username", length = 64, nullable = false)
|
|
private String username;
|
|
|
|
@Column(name = "token", length = 64, nullable = false)
|
|
private String token;
|
|
|
|
@Column(name = "last_used", nullable = false)
|
|
private Date lastUsed;
|
|
|
|
public String getSeries() {
|
|
return series;
|
|
}
|
|
|
|
public void setSeries(String series) {
|
|
this.series = series;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
|
|
public String getToken() {
|
|
return token;
|
|
}
|
|
|
|
public void setToken(String token) {
|
|
this.token = token;
|
|
}
|
|
|
|
public Date getLastUsed() {
|
|
return lastUsed;
|
|
}
|
|
|
|
public void setLastUsed(Date lastUsed) {
|
|
this.lastUsed = lastUsed;
|
|
}
|
|
|
|
|
|
// Getters, setters, etc.
|
|
}
|