diff --git a/src/main/java/com/example/cosmos_serversb/entities/Shop.java b/src/main/java/com/example/cosmos_serversb/entities/Shop.java index 11b6c42..15fa9e7 100644 --- a/src/main/java/com/example/cosmos_serversb/entities/Shop.java +++ b/src/main/java/com/example/cosmos_serversb/entities/Shop.java @@ -13,53 +13,59 @@ /** * SHOP用のクラス * - * @param longitude string - * @param latitude String - * @param longitudeRange String - * @param latitudeRange String - * @param shop String + * @param genre string + * @param code int * */ @JsonInclude(JsonInclude.Include.NON_NULL) - public String longitude; @JsonView(ShopsView.getShopsView.class) - public String latitude; + public String genre; @JsonView(ShopsView.getShopsView.class) - public String longitudeRange; - public String latitudeRange; - public String shop; - - public Set shops = new HashSet<>(); + public int code; + @JsonView(ShopsView.getShopsView.class) + public double latitude; + @JsonView(ShopsView.getShopsView.class) + public double longitude; public Shop() { } - public Shop(String longitude, String latitude, String longitudeRange, String latitudeRange, String shop) { - setlongitude(longitude); - setlatitude(latitude); - setlongitudeRange(longitudeRange); - setlatitudeRange(latitudeRange); - setshop(shop); + public Shop(String genre, int code, double latitude, double longitude) { + setGenre(genre); + setCode(code); + setLatitude(latitude); + setLongitude(longitude); } - public void setlongitude(String longitude) { - this.longitude = longitude; + public void setGenre(String genre) { this.genre = genre; } - public void setlatitude(String latitude) { + public String getGenre(){ + return genre; + } + + public void setCode(int code) { + this.code = code; + } + + public int getCode(){ + return code; + } + + public void setLatitude(double latitude) { this.latitude = latitude; } - public void setlongitudeRange(String longitudeRange) { - this.longitudeRange = longitudeRange; + public double getLatitude() { + return latitude; } - public void setlatitudeRange(String latitudeRange) { - this.latitudeRange = latitudeRange; + public void setLongitude(double longitude) { + this.longitude = longitude; } - public void setshop(String shop) { - this.shop = shop; + public double getLongitude() { + return longitude; } } \ No newline at end of file