Skip to content

Commit

Permalink
MIGENG-417 replacing One-To-One with a Many-to-One
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan committed Feb 4, 2020
1 parent d1ae731 commit 186a847
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 186a847

Please sign in to comment.