diff --git a/src/main/java/org/jboss/xavier/analytics/pojo/output/workload/inventory/WorkloadInventoryReportModel.java b/src/main/java/org/jboss/xavier/analytics/pojo/output/workload/inventory/WorkloadInventoryReportModel.java index 356775f3..8e06cad9 100644 --- a/src/main/java/org/jboss/xavier/analytics/pojo/output/workload/inventory/WorkloadInventoryReportModel.java +++ b/src/main/java/org/jboss/xavier/analytics/pojo/output/workload/inventory/WorkloadInventoryReportModel.java @@ -18,7 +18,7 @@ import javax.persistence.Id; import javax.persistence.Index; import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; +import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.transaction.Transactional; import java.util.Date; @@ -65,7 +65,7 @@ public class WorkloadInventoryReportModel ) private Long id; - @OneToOne(fetch = FetchType.LAZY) + @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = ANALYSIS_ID) @JsonBackReference private AnalysisModel analysis;