generated from pricelees/issue-pr-template
feat: Region Entity / Repository 클래스 추가
This commit is contained in:
parent
3fd9b7c1de
commit
6eff50762c
@ -0,0 +1,18 @@
|
|||||||
|
package roomescape.region.infrastructure.persistence
|
||||||
|
|
||||||
|
import jakarta.persistence.Entity
|
||||||
|
import jakarta.persistence.Id
|
||||||
|
import jakarta.persistence.Table
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table(name = "region")
|
||||||
|
class RegionEntity(
|
||||||
|
@Id
|
||||||
|
val code: String,
|
||||||
|
val sidoCode: String,
|
||||||
|
val sigunguCode: String,
|
||||||
|
val dongCode: String,
|
||||||
|
val sidoName: String,
|
||||||
|
val sigunguName: String,
|
||||||
|
val dongName: String,
|
||||||
|
)
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
package roomescape.region.infrastructure.persistence
|
||||||
|
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository
|
||||||
|
|
||||||
|
interface RegionRepository : JpaRepository<RegionEntity, String>
|
||||||
Loading…
x
Reference in New Issue
Block a user