42 lines
782 B
Java
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;
|
|
}
|
|
}
|