Commit de06e8c6 authored by Matija Obreza's avatar Matija Obreza
Browse files

Default length required for AccessToken persistence (hsqldb)

parent d91eef4a
......@@ -32,16 +32,19 @@ public class AccessToken implements Serializable {
@Id
@Column(length = 100)
private String tokenId;
@Column(unique = true)
@Column(unique = true, length = 100)
private String authenticationId;
@Lob
@Column(length= 20 * 1024)
private byte[] token;
@Column(length = 100)
private String username;
@Column(length = 100)
private String clientId;
@Lob
@Column(length= 20 * 1024)
private byte[] authentication;
@Column(length = 100)
private String refreshToken;
public String getId() {
......
......@@ -34,9 +34,11 @@ public class RefreshToken implements Serializable {
private String tokenId;
@Lob
@Column(length= 20 * 1024)
private byte[] token;
@Lob
@Column(length= 20 * 1024)
private byte[] authentication;
public void setTokenId(final String tokenId) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment