Skip to content

Commit

Permalink
fix : Location 엔티티의 위도, 경도 속성명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yel-m committed May 8, 2024
1 parent d68fbee commit d4c8169
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 d4c8169

Please sign in to comment.