Skip to content
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 @@ -22,6 +22,7 @@
public class TourSpotDetailResponse {
private Long tourspotId;
private String tourspotNm;
private String content;
private AddressDto address;
private String congestionLabel;
private String imageUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public class TourSpot extends BaseEntity {

private String tourspotNm;

@Column(columnDefinition = "TEXT")
private String content;

@OneToMany(mappedBy = "tourspot", cascade = CascadeType.ALL, orphanRemoval = true)
private List<TourSpotCurrentCongestion> currentCongestions;

Expand All @@ -51,6 +54,7 @@ public class TourSpot extends BaseEntity {




protected TourSpot(Address address, String tourspotNm){
this.address = address;
this.tourspotNm = tourspotNm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ public TourSpotDetailResponse combineTourSpotDetail(Long tourspotId) throws Json
if (tourSpotCurrentCongestion != null) {
congestionLabel = tourSpotCurrentCongestion.getCongestionLvl().getCongestionLabel();
}


return tourSpotDetailMapper.toResponse(
tourSpot,
imageUrl,
Expand All @@ -95,6 +93,10 @@ public TourSpotDetailResponse combineTourSpotDetail(Long tourspotId) throws Json
tourSpotDetailMapper.toMonthlyCongestionDtos(monthlyCongestions)

);




}


Expand Down
Loading