Fix JpaTarget entity graphs (#2198)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -366,7 +366,6 @@ public interface TargetManagement {
|
||||
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_READ_TARGET)
|
||||
Optional<Target> getByControllerID(@NotEmpty String controllerId);
|
||||
|
||||
|
||||
/**
|
||||
* Gets a {@link Target} based a given controller id and includes the details specified by the details key.
|
||||
*
|
||||
|
||||
@@ -89,10 +89,7 @@ import org.springframework.util.ObjectUtils;
|
||||
@NamedAttributeNode("installedDistributionSet"),
|
||||
@NamedAttributeNode("assignedDistributionSet") }),
|
||||
@NamedEntityGraph(name = "Target.targetType", attributeNodes = { @NamedAttributeNode("targetType") }),
|
||||
@NamedEntityGraph(name = "Target.installedDistributionSet", attributeNodes = { @NamedAttributeNode("installedDistributionSet") },
|
||||
subgraphs = { @NamedSubgraph(
|
||||
name = "installedDistributionSet.optLockRevision",
|
||||
attributeNodes = @NamedAttributeNode("optLockRevision")) }),
|
||||
@NamedEntityGraph(name = "Target.installedDistributionSet", attributeNodes = { @NamedAttributeNode("installedDistributionSet") }),
|
||||
@NamedEntityGraph(name = "Target.assignedDistributionSet", attributeNodes = { @NamedAttributeNode("assignedDistributionSet") }),
|
||||
@NamedEntityGraph(name = "Target.autoConfirmationStatus", attributeNodes = { @NamedAttributeNode("autoConfirmationStatus") }),
|
||||
@NamedEntityGraph(name = "Target.tags", attributeNodes = { @NamedAttributeNode("tags") }),
|
||||
|
||||
Reference in New Issue
Block a user