관리자 큐레이션 등록/수정
- 탭과 시리즈 여부 추가
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
package kr.co.vividnext.sodalive.content.main.curation
|
||||
|
||||
import kr.co.vividnext.sodalive.common.BaseEntity
|
||||
import kr.co.vividnext.sodalive.content.main.tab.AudioContentMainTab
|
||||
import javax.persistence.Column
|
||||
import javax.persistence.Entity
|
||||
import javax.persistence.FetchType
|
||||
import javax.persistence.JoinColumn
|
||||
import javax.persistence.OneToOne
|
||||
import javax.persistence.Table
|
||||
|
||||
@Entity
|
||||
@@ -17,5 +21,11 @@ data class AudioContentCuration(
|
||||
@Column(nullable = false)
|
||||
var isActive: Boolean = true,
|
||||
@Column(nullable = false)
|
||||
var orders: Int = 1
|
||||
) : BaseEntity()
|
||||
var orders: Int = 1,
|
||||
@Column(nullable = false)
|
||||
var isSeries: Boolean = false
|
||||
) : BaseEntity() {
|
||||
@OneToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "tab_id", nullable = true)
|
||||
var tab: AudioContentMainTab? = null
|
||||
}
|
||||
|
Reference in New Issue
Block a user