Skip to content

Commit

Permalink
Merge pull request #66 from Happy-HOBAK/feat/#65
Browse files Browse the repository at this point in the history
[#65] Location์˜ ์œ„๋„, ๊ฒฝ๋„ ์†์„ฑ๋ช… ์ˆ˜์ •
  • Loading branch information
KkomSang authored May 9, 2024
2 parents d68fbee + d4c8169 commit 63a8758
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public static Location toLocation(RecordCreateRequestDto recordRequestDto, Recor
.city(recordRequestDto.getCity())
.country(recordRequestDto.getCountry())
.district(recordRequestDto.getDistrict())
.xPos(recordRequestDto.getXPos())
.yPos(recordRequestDto.getYPos())
.latitude(recordRequestDto.getLatitude())
.longitude(recordRequestDto.getLongitude())
.record(record)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ public class Location extends BaseTimeEntity {
private String district;

@Column(nullable = false)
private Double xPos;
private Double latitude;

@Column(nullable = false)
private Double yPos;
private Double longitude;

@OneToOne
@JoinColumn(name = "record_id", nullable = false)
private Record record;

@Builder
public Location(String fullName, String country, String city, String district, Double xPos, Double yPos, Record record) {
public Location(String fullName, String country, String city, String district, Double latitude, Double longitude, Record record) {
this.fullName = fullName;
this.country = country;
this.city = city;
this.district = district;
this.xPos = xPos;
this.yPos = yPos;
this.latitude = latitude;
this.longitude = longitude;
this.record = record;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ public class RecordCreateRequestDto {
private String district;

@NotNull
@JsonProperty("x_pos")
private Double xPos;
private Double latitude;

@NotNull
@JsonProperty("y_pos")
private Double yPos;
private Double longitude;
}

0 comments on commit 63a8758

Please sign in to comment.