Skip to content

Commit

Permalink
refactor: #62 coordinate 관련 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tinon1004 committed Mar 11, 2024
1 parent 9374c06 commit 308f808
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/ajou/hertz/common/entity/Coordinate.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor(access = AccessLevel.PRIVATE)
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor(access = AccessLevel.PUBLIC)
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@Getter
@Embeddable
public class Coordinate {

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

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

public static Coordinate of(double latitude, double longitude) {
public static Coordinate of(String latitude, String longitude) {
return new Coordinate(latitude, longitude);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public class ConcertHall extends TimeTrackedBaseEntity {

@Column(length = 1000, nullable = false)
private String description;

@Column(nullable = false)

@Embedded
private Coordinate coordinate;

Expand Down

0 comments on commit 308f808

Please sign in to comment.