Fixed exception being thrown when deleting old RefreshTokenEntity.
This commit is contained in:
parent
733899fee8
commit
1976e345b6
@ -10,6 +10,10 @@ import java.time.temporal.ChronoUnit;
|
|||||||
public class RefreshTokenEntity implements RefreshToken {
|
public class RefreshTokenEntity implements RefreshToken {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||||
|
@Column(nullable = false, updatable = false)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
@Column(unique = true, nullable = false)
|
@Column(unique = true, nullable = false)
|
||||||
private String token;
|
private String token;
|
||||||
|
|
||||||
@ -26,6 +30,14 @@ public class RefreshTokenEntity implements RefreshToken {
|
|||||||
@ManyToOne
|
@ManyToOne
|
||||||
private UserEntity owner;
|
private UserEntity owner;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getToken() {
|
public String getToken() {
|
||||||
return this.token;
|
return this.token;
|
||||||
|
Loading…
Reference in New Issue
Block a user