로딩 속도를 위해 @Cacheable 적용 #50

Merged
klaus merged 9 commits from test into main 2023-10-17 09:31:09 +00:00
2 changed files with 2 additions and 7 deletions
Showing only changes of commit 3537f22197 - Show all commits

View File

@ -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

View File

@ -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()