com.fasterxml.jackson.databind.exc.InvalidDefinitionException 에러를 처리하기 위해 - theme의 fetchType을 EAGER로 변경
This commit is contained in:
@@ -42,7 +42,7 @@ data class AudioContent(
|
||||
var content: String? = null
|
||||
var coverImage: String? = null
|
||||
|
||||
@OneToOne(fetch = FetchType.LAZY)
|
||||
@OneToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "theme_id", nullable = false)
|
||||
var theme: AudioContentTheme? = null
|
||||
|
||||
|
@@ -1,10 +1,8 @@
|
||||
package kr.co.vividnext.sodalive.content.main.curation
|
||||
|
||||
import kr.co.vividnext.sodalive.common.BaseEntity
|
||||
import kr.co.vividnext.sodalive.content.AudioContent
|
||||
import javax.persistence.Column
|
||||
import javax.persistence.Entity
|
||||
import javax.persistence.OneToMany
|
||||
import javax.persistence.Table
|
||||
|
||||
@Entity
|
||||
@@ -20,7 +18,4 @@ data class AudioContentCuration(
|
||||
var isActive: Boolean = true,
|
||||
@Column(nullable = false)
|
||||
var orders: Int = 1
|
||||
) : BaseEntity() {
|
||||
@OneToMany(mappedBy = "curation")
|
||||
val audioContents: MutableList<AudioContent> = mutableListOf()
|
||||
}
|
||||
) : BaseEntity()
|
||||
|
Reference in New Issue
Block a user