made token fetching lazy-loaded

pull/943/head
Justin Richer 9 years ago
parent c9358f348a
commit 8cc89e4e85

@ -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") @JoinColumn(name="approved_site_id")
public Set<OAuth2AccessTokenEntity> getApprovedAccessTokens() { public Set<OAuth2AccessTokenEntity> getApprovedAccessTokens() {
return approvedAccessTokens; return approvedAccessTokens;

Loading…
Cancel
Save