Skip to content

Commit

Permalink
Merge pull request #20 from AlongTheBlue/develop
Browse files Browse the repository at this point in the history
[Feat] cafe x, y 좌표 추가
  • Loading branch information
MoonInbae authored Oct 1, 2024
2 parents 78abb13 + 40319d9 commit 659a240
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,18 @@ public class Cafe {

private String restDate;
private String infoCenter;
private String xMap;
private String yMap;

@OneToMany(mappedBy = "cafe", cascade = CascadeType.ALL)
@JsonManagedReference
List<CafeImage> cafeImages;

public Cafe(String contentId, String title, String addr) {
public Cafe(String contentId, String title, String addr, String xMap, String yMap) {
this.contentId = contentId;
this.title = title;
this.addr= addr;}
this.addr= addr;
this.xMap = xMap;
this.yMap = yMap;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ private Cafe parseCafe(JsonNode itemNode) {
String contentId = itemNode.path("contentid").asText();
String title = itemNode.path("title").asText();
String addr = itemNode.path("addr1").asText();

return new Cafe(contentId, title, addr);
String x = itemNode.path("mapx").asText();
String y = itemNode.path("mapy").asText();
return new Cafe(contentId, title, addr, x, y);
}

public List<CafeDTO> getAll() {
Expand Down

0 comments on commit 659a240

Please sign in to comment.