1
0
forked from PGL/Clyde
LeoMoulin c27c3ac9fb - Ajout des champs password et salt dans user
- Ajout de la table token
- Ajout des foreign keys
2024-03-05 14:14:56 +01:00

42 lines
782 B
Java

package ovh.herisson.Clyde.Tables;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
@Entity
public class Token {
@GeneratedValue(strategy = GenerationType.AUTO)
@Id
private int id;
private int regNo;
private String data;
public Token(int regNo, String data){
this.regNo = regNo;
this.data = data;
}
public Token(){}
public int getId() {
return id;
}
public int getRegNo() {
return regNo;
}
public void setRegNo(int regNo) {
this.regNo = regNo;
}
public String getData(){
return data;
}
public void setData(String data) {
this.data = data;
}
}