Skip to content

Commit

Permalink
Merge pull request #8 from 2E1I/dev
Browse files Browse the repository at this point in the history
UsesEntity의 mappedBy 에러 해결
  • Loading branch information
CEO-Nick authored Apr 18, 2024
2 parents 2854746 + 007cbc5 commit ce051d3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.e2i1.linkeepserver.common.entity.DateEntity;
import com.e2i1.linkeepserver.domain.collections.entity.CollectionsEntity;
import com.e2i1.linkeepserver.domain.users.entity.UsersEntity;
import jakarta.persistence.Entity;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
Expand All @@ -28,6 +29,10 @@ public class LinksEntity extends DateEntity {
@JoinColumn(name = "collection_id")
private CollectionsEntity collection;

@ManyToOne(fetch = LAZY)
@JoinColumn(name = "user_id")
private UsersEntity user;

private String title;
private String url;
private String description;
Expand Down

0 comments on commit ce051d3

Please sign in to comment.