Skip to content

Commit 23c0cd6

Browse files
committed
refactor(location): BaseEntity 추가 및 불필요한 import 제거
1 parent 9613cd0 commit 23c0cd6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/com/somemore/location/domain/Location.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import static jakarta.persistence.GenerationType.IDENTITY;
44
import static lombok.AccessLevel.PROTECTED;
55

6+
import com.somemore.global.common.BaseEntity;
67
import jakarta.persistence.Column;
78
import jakarta.persistence.Entity;
89
import jakarta.persistence.GeneratedValue;
9-
import jakarta.persistence.GenerationType;
1010
import jakarta.persistence.Id;
1111
import jakarta.persistence.Table;
1212
import lombok.Builder;
@@ -17,9 +17,10 @@
1717
@NoArgsConstructor(access = PROTECTED)
1818
@Entity
1919
@Table(name = "location")
20-
public class Location {
20+
public class Location extends BaseEntity {
2121

22-
@Id @GeneratedValue(strategy = IDENTITY)
22+
@Id
23+
@GeneratedValue(strategy = IDENTITY)
2324
private Long id;
2425

2526
@Column(name = "address", nullable = false)

0 commit comments

Comments
 (0)