Browse Source

made token fetching lazy-loaded

pull/943/head
Justin Richer 9 years ago
parent
commit
8cc89e4e85
  1. 2
      openid-connect-common/src/main/java/org/mitre/openid/connect/model/ApprovedSite.java

2
openid-connect-common/src/main/java/org/mitre/openid/connect/model/ApprovedSite.java

@ -229,7 +229,7 @@ public class ApprovedSite {
}
}
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER)
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY)
@JoinColumn(name="approved_site_id")
public Set<OAuth2AccessTokenEntity> getApprovedAccessTokens() {
return approvedAccessTokens;

Loading…
Cancel
Save