changed auth holder reference, moved dates to timestamps

pull/166/head
Justin Richer 2012-08-10 13:44:31 -04:00
parent bb7d6b2e94
commit 74a40fc973
2 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ public class OAuth2RefreshTokenEntity implements OAuth2RefreshToken {
* @return the authentication * @return the authentication
*/ */
@ManyToOne @ManyToOne
@JoinColumn(name = "owner_id") @JoinColumn(name = "auth_holder_id")
public AuthenticationHolder getAuthenticationHolder() { public AuthenticationHolder getAuthenticationHolder() {
return authenticationHolder; return authenticationHolder;
} }

View File

@ -28,9 +28,9 @@ CREATE TABLE approved_site (
id BIGINT AUTO_INCREMENT PRIMARY KEY, id BIGINT AUTO_INCREMENT PRIMARY KEY,
user_id VARCHAR(4096), user_id VARCHAR(4096),
client_id VARCHAR(4096), client_id VARCHAR(4096),
creation_date DATE, creation_date TIMESTAMP,
access_date DATE, access_date TIMESTAMP,
timeout_date DATE, timeout_date TIMESTAMP,
whitelisted_site_id VARCHAR(256) whitelisted_site_id VARCHAR(256)
); );