explicitly mapped missing JPA columns in common->openid.connect.model #317

pull/357/merge
William Kim 2013-06-11 15:08:39 -04:00 committed by Justin Richer
parent 46641a2fa1
commit d6109fd1ae
7 changed files with 21 additions and 0 deletions

View File

@ -48,6 +48,7 @@ public class Address {
* @return the formatted address string * @return the formatted address string
*/ */
@Basic @Basic
@Column(name = "formatted")
public String getFormatted() { public String getFormatted() {
return formatted; return formatted;
} }
@ -75,6 +76,7 @@ public class Address {
* @return the locality * @return the locality
*/ */
@Basic @Basic
@Column(name = "locality")
public String getLocality() { public String getLocality() {
return locality; return locality;
} }
@ -88,6 +90,7 @@ public class Address {
* @return the region * @return the region
*/ */
@Basic @Basic
@Column(name = "region")
public String getRegion() { public String getRegion() {
return region; return region;
} }
@ -115,6 +118,7 @@ public class Address {
* @return the country * @return the country
*/ */
@Basic @Basic
@Column(name = "country")
public String getCountry() { public String getCountry() {
return country; return country;
} }
@ -130,6 +134,7 @@ public class Address {
*/ */
@Id @Id
@GeneratedValue(strategy=GenerationType.IDENTITY) @GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name = "id")
public Long getId() { public Long getId() {
return id; return id;
} }

View File

@ -85,6 +85,7 @@ public class ApprovedSite {
*/ */
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
public Long getId() { public Long getId() {
return id; return id;
} }

View File

@ -55,6 +55,7 @@ public class BlacklistedSite {
*/ */
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
public Long getId() { public Long getId() {
return id; return id;
} }

View File

@ -66,6 +66,7 @@ public class DefaultUserInfo implements UserInfo {
*/ */
@Id @Id
@GeneratedValue(strategy=GenerationType.IDENTITY) @GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name = "id")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -112,6 +113,7 @@ public class DefaultUserInfo implements UserInfo {
*/ */
@Override @Override
@Basic @Basic
@Column(name = "name")
public String getName() { public String getName() {
return name; return name;
} }
@ -175,6 +177,7 @@ public class DefaultUserInfo implements UserInfo {
*/ */
@Override @Override
@Basic @Basic
@Column(name = "nickname")
public String getNickname() { public String getNickname() {
return nickname; return nickname;
} }
@ -190,6 +193,7 @@ public class DefaultUserInfo implements UserInfo {
*/ */
@Override @Override
@Basic @Basic
@Column(name = "profile")
public String getProfile() { public String getProfile() {
return profile; return profile;
} }
@ -205,6 +209,7 @@ public class DefaultUserInfo implements UserInfo {
*/ */
@Override @Override
@Basic @Basic
@Column(name = "picture")
public String getPicture() { public String getPicture() {
return picture; return picture;
} }
@ -220,6 +225,7 @@ public class DefaultUserInfo implements UserInfo {
*/ */
@Override @Override
@Basic @Basic
@Column(name = "website")
public String getWebsite() { public String getWebsite() {
return website; return website;
} }
@ -235,6 +241,7 @@ public class DefaultUserInfo implements UserInfo {
*/ */
@Override @Override
@Basic @Basic
@Column(name = "email")
public String getEmail() { public String getEmail() {
return email; return email;
} }
@ -266,6 +273,7 @@ public class DefaultUserInfo implements UserInfo {
*/ */
@Override @Override
@Basic @Basic
@Column(name = "gender")
public String getGender() { public String getGender() {
return gender; return gender;
} }
@ -297,6 +305,7 @@ public class DefaultUserInfo implements UserInfo {
*/ */
@Override @Override
@Basic @Basic
@Column(name = "locale")
public String getLocale() { public String getLocale() {
return locale; return locale;
} }

View File

@ -19,6 +19,7 @@ package org.mitre.openid.connect.model;
import java.util.Date; import java.util.Date;
import javax.persistence.Basic; import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType; import javax.persistence.GenerationType;
@ -48,6 +49,7 @@ public class Event {
*/ */
@Id @Id
@GeneratedValue(strategy=GenerationType.IDENTITY) @GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name = "id")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -74,6 +76,7 @@ public class Event {
*/ */
@Basic @Basic
@Temporal(javax.persistence.TemporalType.TIMESTAMP) @Temporal(javax.persistence.TemporalType.TIMESTAMP)
@Column(name = "timestamp")
public Date getTimestamp() { public Date getTimestamp() {
return timestamp; return timestamp;
} }

View File

@ -55,6 +55,7 @@ public class Nonce {
*/ */
@Id @Id
@GeneratedValue(strategy=GenerationType.IDENTITY) @GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name = "id")
public Long getId() { public Long getId() {
return id; return id;
} }

View File

@ -72,6 +72,7 @@ public class WhitelistedSite {
*/ */
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
public Long getId() { public Long getId() {
return id; return id;
} }