We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OneToMany단방향일때는 @onetomany @JoinColum(name="FK") 로 쓰면 알아서 관리해주고, OneToMany에서도 JoinColumn을 쓸 수 있음.
@manytoone @joincolumn(name="FK") 로 해주고, One쪽에서 mappedBy가 연관관계의 주인이 아니라서 거슬리는 문제들이 발생하잖아
그러면 그냥 @onetomany, @manytoone양쪽에다가 다 JoinColumn해주면 되지않으까?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
OneToMany단방향일때는
@onetomany
@JoinColum(name="FK")
로 쓰면 알아서 관리해주고, OneToMany에서도 JoinColumn을 쓸 수 있음.
양방향일때는
@onetomany(mappedBy="Many쪽 필드")
@manytoone
@joincolumn(name="FK")
로 해주고, One쪽에서 mappedBy가 연관관계의 주인이 아니라서 거슬리는 문제들이 발생하잖아
그러면 그냥 @onetomany, @manytoone양쪽에다가 다 JoinColumn해주면 되지않으까?
The text was updated successfully, but these errors were encountered: