Skip to content
New issue

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

Hotfix #10

Merged
merged 2 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading