Skip to content

Commit

Permalink
adding lazy load on ConditionOccurrence entity's provider column
Browse files Browse the repository at this point in the history
  • Loading branch information
myungchoi committed Feb 16, 2021
1 parent 36a082f commit 1cc57a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
Expand Down Expand Up @@ -74,7 +75,7 @@ public class ConditionOccurrence extends BaseEntity{
@Column(name="stop_reason")
private String stopReason;

@ManyToOne
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "provider_id")
private Provider provider;

Expand Down

0 comments on commit 1cc57a0

Please sign in to comment.