Skip to content

Commit

Permalink
fix: 저장되는 좌표의 소수점 아래 자릿수 8자리로 수정
Browse files Browse the repository at this point in the history
시군구 데이터의 중심점 좌표의 정확도에 맞춤.
  • Loading branch information
Awhn committed Nov 12, 2024
1 parent e885feb commit 16dc494
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ public class ActivityJpaEntity extends BaseEntity {
@Column(name = "online_possible")
private boolean onlinePossible;

@Column(name = "latitude")
@Column(name = "latitude", precision = 10, scale = 8)
private BigDecimal latitude;

@Column(name = "longitude")
@Column(name = "longitude", precision = 11, scale = 8)
private BigDecimal longitude;

@Column(name = "act_week")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public class DistrictJpaEntity extends BaseEntity {
@Column(name = "sido_code", nullable = false)
private int sidoCode;

@Column(name = "latitude")
@Column(name = "latitude", precision = 10, scale = 8)
private BigDecimal latitude;

@Column(name = "longitude")
@Column(name = "longitude", precision = 11, scale = 8)
private BigDecimal longitude;

@Column(name = "sido_name", length = 15, nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public class InstituteJpaEntity extends BaseEntity {
@Column(name = "location", length = 255)
private String location;

@Column(name = "latitude")
@Column(name = "latitude", precision = 10, scale = 8)
private BigDecimal latitude;

@Column(name = "longitude")
@Column(name = "longitude", precision = 11, scale = 8)
private BigDecimal longitude;

@ManyToOne(fetch = FetchType.EAGER)
Expand Down

0 comments on commit 16dc494

Please sign in to comment.