Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

member-api many commit #43

Merged
merged 10 commits into from
Nov 20, 2016
3 changes: 1 addition & 2 deletions src/main/java/io/codechobo/member/domain/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
Expand Down Expand Up @@ -67,7 +66,7 @@ public class Member {
/*
* social은 member에 종속적이므로 cascade
*/
@OneToMany(fetch = FetchType.EAGER, mappedBy = "seq")
@OneToMany
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요렇게 하는것도 나쁘진 않지만 가능하면 이게 어떤어떤 동작을 하게 되는지는 적어주는 편이 좋습니다.

private List<Social> socials;

public Member(final MemberDto memberDto) {
Expand Down