Skip to content

Commit

Permalink
Merge branch 'develop' into fix/#67
Browse files Browse the repository at this point in the history
  • Loading branch information
yel-m authored May 10, 2024
2 parents d3e1c63 + 63a8758 commit 77b0873
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 requestDto, Record reco
.city(requestDto.getCity())
.country(requestDto.getCountry())
.district(requestDto.getDistrict())
.xPos(requestDto.getXPos())
.yPos(requestDto.getYPos())
.latitude(requestDto.getLatitude())
.longitude(requestDto.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 77b0873

Please sign in to comment.