Skip to content

Commit

Permalink
[ADD] booth "host" column add
Browse files Browse the repository at this point in the history
- booth "host" column add
  • Loading branch information
himodu committed May 20, 2024
1 parent 5872cb9 commit d4a17e8
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 d4a17e8

Please sign in to comment.