Skip to content

Commit

Permalink
release(DB 인덱스 추가): 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
softpeanut authored Jan 4, 2023
2 parents 55f0f79 + e4336e2 commit 62c721b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package team.comit.simtong.persistence.file.entity
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Index
import javax.persistence.Table

/**
Expand All @@ -14,7 +15,12 @@ import javax.persistence.Table
* @version 1.0.0
**/
@Entity
@Table(name = "tbl_employee_certificate")
@Table(
name = "tbl_employee_certificate",
indexes = [
Index(name = "idx_name", columnList = "name ASC")
]
)
data class EmployeeCertificateJpaEntity(
@Id
val employeeNumber: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import javax.persistence.Entity
import javax.persistence.EnumType
import javax.persistence.Enumerated
import javax.persistence.FetchType
import javax.persistence.Index
import javax.persistence.JoinColumn
import javax.persistence.ManyToOne
import javax.persistence.Table
Expand All @@ -27,7 +28,12 @@ import javax.validation.constraints.NotNull
* @version 1.0.0
**/
@Entity
@Table(name = "tbl_schedule")
@Table(
name = "tbl_schedule",
indexes = [
Index(name = "idx_start_at_end_at", columnList = "startAt ASC, endAt ASC")
]
)
class ScheduleJpaEntity(
override val id: UUID?,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ import javax.persistence.Entity
import javax.persistence.EnumType
import javax.persistence.Enumerated
import javax.persistence.FetchType
import javax.persistence.Index
import javax.persistence.JoinColumn
import javax.persistence.ManyToOne
import javax.persistence.Table
import javax.persistence.UniqueConstraint
import javax.validation.constraints.NotNull

/**
Expand Down

0 comments on commit 62c721b

Please sign in to comment.