Skip to content

Commit

Permalink
refactor: kotlin all open gradle의 jakarata를 javax로 변경한다
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Mar 10, 2024
1 parent 12af3b4 commit 0e48f7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle/kotlin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ allprojects {
apply plugin: 'org.jetbrains.kotlin.plugin.allopen'

allOpen {
annotation("jakarta.persistence.Entity")
annotation("javax.persistence.Entity")
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ import javax.persistence.*
abstract class FormQuestionable(
@Id
@Column(name = "form_question_id")
open val id: Long,
val id: Long,

@Column(name = "title", nullable = false, length = 45)
open val title: String,
val title: String,

@Column(name = "orders", nullable = false)
open val order: Int,
val order: Int,

@Enumerated(EnumType.STRING)
@Column(name = "question_type")
open val questionType: QuestionType,
val questionType: QuestionType,

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "survey_id", nullable = false)
open val survey: Survey,
val survey: Survey,
) : Comparable<FormQuestionable>, TimeBaseEntity() {

override fun compareTo(other: FormQuestionable): Int = this.order.compareTo(other.order)
Expand Down

0 comments on commit 0e48f7d

Please sign in to comment.