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 { | ||||
| 
 | ||||
|     @Id | ||||
|     @GeneratedValue(strategy = GenerationType.AUTO) | ||||
|     @Column(nullable = false, updatable = false) | ||||
|     private Long id; | ||||
| 
 | ||||
|     @Column(unique = true, nullable = false) | ||||
|     private String token; | ||||
| 
 | ||||
| @ -26,6 +30,14 @@ public class RefreshTokenEntity implements RefreshToken { | ||||
|     @ManyToOne | ||||
|     private UserEntity owner; | ||||
| 
 | ||||
|     public Long getId() { | ||||
|         return this.id; | ||||
|     } | ||||
| 
 | ||||
|     public void setId(Long id) { | ||||
|         this.id = id; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public String getToken() { | ||||
|         return this.token; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Jesse Brault
						Jesse Brault