Skip to content

Commit

Permalink
Merge pull request #10 from LikeLion-KNU/HOTFIX
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
himodu authored May 20, 2024
2 parents 248cba0 + 76a3682 commit a0f9d77
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@AllArgsConstructor
public class Booth {
private String boothName;
private String host;
private int likes;
private String categori;
private int boothnum;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@Builder
public class BoothDetail {
private String boothName;
private String host;
private String boothDescription;
private int likes;
private String categori;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public class BoothEntity extends BasicEntity {
@Column(name="description")
private String description;

@Column(name="host")
private String host;

@OneToMany(mappedBy = "booth", fetch = FetchType.LAZY)
private List<CommentEntity> commentEntityList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public AllBooth getAllbooth(String userHash) {
for(BoothEntity booth : boothes){
boothDtos.add(Booth.builder()
.boothName(booth.getBoothName())
.host(booth.getHost())
.likes(booth.getLikes())
.categori(booth.getCategori())
.boothnum(booth.getBoothnum())
Expand Down Expand Up @@ -89,6 +90,7 @@ public BoothDetail getBooth(int boothnum, String categori, String userHash) {
}
return BoothDetail.builder()
.boothName(booth.getBoothName())
.host(booth.getHost())
.boothDescription(booth.getDescription())
.likes(booth.getLikes())
.boothnum(booth.getBoothnum())
Expand Down

0 comments on commit a0f9d77

Please sign in to comment.