-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lovee9523
committed
Apr 6, 2024
1 parent
d39d3fb
commit 6485302
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/main/java/seouldata/seoul_backend/cctv/domain/entity/AnCctv.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package seouldata.seoul_backend.cctv.domain.entity; | ||
|
||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Entity | ||
@Table(name = "an_cctv") | ||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class AnCctv { | ||
|
||
@Id | ||
private Long number; | ||
private String autonomousRegion; | ||
private String address; | ||
private Double lon; | ||
private Double lat; | ||
|
||
@Builder | ||
public AnCctv(Long number, String autonomousRegion, String address, | ||
Double lon, Double lat) { | ||
this.number = number; | ||
this.autonomousRegion = autonomousRegion; | ||
this.address = address; | ||
this.lon = lon; | ||
this.lat = lat; | ||
} | ||
|
||
} |