크리에이터 관리자에서 시리즈 등록/수정시 번역데이터 생성 기능 추가
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
package kr.co.vividnext.sodalive.content.series.translation
|
||||
|
||||
import kr.co.vividnext.sodalive.common.BaseEntity
|
||||
import javax.persistence.Column
|
||||
import javax.persistence.Entity
|
||||
import javax.persistence.Table
|
||||
import javax.persistence.UniqueConstraint
|
||||
|
||||
@Entity
|
||||
@Table(
|
||||
uniqueConstraints = [
|
||||
UniqueConstraint(columnNames = ["series_genre_id", "locale"])
|
||||
]
|
||||
)
|
||||
class SeriesGenreTranslation(
|
||||
@Column(name = "series_genre_id")
|
||||
val seriesGenreId: Long,
|
||||
@Column(name = "locale")
|
||||
val locale: String,
|
||||
val genre: String
|
||||
var genre: String
|
||||
) : BaseEntity()
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package kr.co.vividnext.sodalive.content.series.translation
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository
|
||||
|
||||
interface SeriesGenreTranslationRepository : JpaRepository<SeriesGenreTranslation, Long> {
|
||||
fun findBySeriesGenreIdAndLocale(seriesGenreId: Long, locale: String): SeriesGenreTranslation?
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package kr.co.vividnext.sodalive.content.series.translation
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository
|
||||
|
||||
interface SeriesTranslationRepository : JpaRepository<SeriesTranslation, Long> {
|
||||
fun findBySeriesIdAndLocale(seriesId: Long, locale: String): SeriesTranslation?
|
||||
}
|
||||
Reference in New Issue
Block a user