javafied auth holder class

pull/166/head
Justin Richer 2012-08-10 12:41:56 -04:00
parent 66e5cf3f04
commit 2d8a5763a3
1 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,7 @@
package org.mitre.oauth2.model; package org.mitre.oauth2.model;
import javax.persistence.Basic; import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.FetchType; import javax.persistence.FetchType;
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;
@ -22,7 +23,7 @@ public class AuthenticationHolder {
private Long id; private Long id;
private Long owner_id; private Long ownerId;
private OAuth2Authentication authentication; private OAuth2Authentication authentication;
@ -41,12 +42,13 @@ public class AuthenticationHolder {
} }
@Basic @Basic
public Long getOwner_id() { @Column(name="owner_id")
return owner_id; public Long getOwnerId() {
return ownerId;
} }
public void setOwner_id(Long owner_id) { public void setOwnerId(Long owner_id) {
this.owner_id = owner_id; this.ownerId = owner_id;
} }
@Lob @Lob