parent
434cc7c711
commit
7b51d8617d
2 changed files with 0 additions and 31 deletions
|
@ -108,10 +108,6 @@ public class ResourceEntity {
|
|||
@BatchSize(size = 20)
|
||||
private List<ScopeEntity> scopes;
|
||||
|
||||
@ManyToMany(fetch = FetchType.LAZY, cascade = {})
|
||||
@JoinTable(name = "RESOURCE_POLICY", joinColumns = @JoinColumn(name = "RESOURCE_ID"), inverseJoinColumns = @JoinColumn(name = "POLICY_ID"))
|
||||
private List<PolicyEntity> policies;
|
||||
|
||||
@OneToMany(cascade = CascadeType.REMOVE, orphanRemoval = true, mappedBy="resource", fetch = FetchType.LAZY)
|
||||
@Fetch(FetchMode.SELECT)
|
||||
@BatchSize(size = 20)
|
||||
|
@ -199,18 +195,6 @@ public class ResourceEntity {
|
|||
return ownerManagedAccess;
|
||||
}
|
||||
|
||||
public List<PolicyEntity> getPolicies() {
|
||||
if (policies == null) {
|
||||
policies = new LinkedList<>();
|
||||
}
|
||||
return this.policies;
|
||||
}
|
||||
|
||||
|
||||
public void setPolicies(List<PolicyEntity> policies) {
|
||||
this.policies = policies;
|
||||
}
|
||||
|
||||
public Collection<ResourceAttributeEntity> getAttributes() {
|
||||
if (attributes == null) {
|
||||
attributes = new LinkedList<>();
|
||||
|
|
|
@ -69,10 +69,6 @@ public class ScopeEntity {
|
|||
@JoinColumn(name = "RESOURCE_SERVER_ID")
|
||||
private ResourceServerEntity resourceServer;
|
||||
|
||||
@ManyToMany(fetch = FetchType.LAZY, cascade = {})
|
||||
@JoinTable(name = "SCOPE_POLICY", joinColumns = @JoinColumn(name = "SCOPE_ID"), inverseJoinColumns = @JoinColumn(name = "POLICY_ID"))
|
||||
private List<PolicyEntity> policies;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
@ -113,17 +109,6 @@ public class ScopeEntity {
|
|||
return resourceServer;
|
||||
}
|
||||
|
||||
public List<PolicyEntity> getPolicies() {
|
||||
if (policies == null) {
|
||||
policies = new LinkedList<>();
|
||||
}
|
||||
return policies;
|
||||
}
|
||||
|
||||
public void setPolicies(List<PolicyEntity> policies) {
|
||||
this.policies = policies;
|
||||
}
|
||||
|
||||
public void setResourceServer(final ResourceServerEntity resourceServer) {
|
||||
this.resourceServer = resourceServer;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue