Skip to content

Commit

Permalink
⚡️ Break grant response slow query.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignaudo committed Jan 25, 2025
1 parent b962c8b commit 56195ca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/com/ubiqube/etsi/mano/dao/mano/GrantResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,17 @@ public class GrantResponse implements BaseEntity, Auditable {
private String vnfLcmOpOccId;

@Valid
@ManyToMany(cascade = CascadeType.DETACH, fetch = FetchType.EAGER)
@ManyToMany(cascade = CascadeType.DETACH, fetch = FetchType.LAZY)
private Set<VimConnectionInformation> vimConnections = new LinkedHashSet<>();

@Valid
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private Set<VimConnectionInformation> cismConnections = new LinkedHashSet<>();

@ManyToMany(cascade = CascadeType.DETACH, fetch = FetchType.EAGER)
@ManyToMany(cascade = CascadeType.DETACH, fetch = FetchType.LAZY)
private Map<String, ConnectionInformation> cirConnectionInfo = new HashMap<>();

@ManyToMany(cascade = CascadeType.DETACH, fetch = FetchType.EAGER)
@ManyToMany(cascade = CascadeType.DETACH, fetch = FetchType.LAZY)
private Map<String, ConnectionInformation> mciopRepositoryInfo = new HashMap<>();

/**
Expand Down Expand Up @@ -209,7 +209,7 @@ public class GrantResponse implements BaseEntity, Auditable {
* resource.
*/
@Valid
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private Set<GrantInformationExt> addResources = new LinkedHashSet<>();

/**
Expand All @@ -220,7 +220,7 @@ public class GrantResponse implements BaseEntity, Auditable {
* grant request, with one entry per resource.
*/
@Valid
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private Set<GrantInformationExt> tempResources = new LinkedHashSet<>();

/**
Expand All @@ -230,7 +230,7 @@ public class GrantResponse implements BaseEntity, Auditable {
* which is related to this grant request, with one entry per resource.
*/
@Valid
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private Set<GrantInformationExt> removeResources = new LinkedHashSet<>();

/**
Expand All @@ -240,7 +240,7 @@ public class GrantResponse implements BaseEntity, Auditable {
* which is related to this grant request, with one entry per resource.
*/
@Valid
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private Set<GrantInformationExt> updateResources = new LinkedHashSet<>();

/**
Expand Down

0 comments on commit 56195ca

Please sign in to comment.