Skip to content

Commit

Permalink
refactor : Sticker가 Image를 Wrapping 객체 StickerImage로 가지고 있도록 변경 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-ho committed Dec 13, 2023
1 parent 8252c6e commit 1e5f776
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package io.raemian.storage.db.core.emoji

import io.raemian.storage.db.core.BaseEntity
import jakarta.persistence.Column
import jakarta.persistence.Embedded
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
Expand All @@ -16,8 +17,9 @@ class Sticker(
@Nationalized
val name: String,

@Embedded
@Column(nullable = false)
val stickerImage: String,
val stickerImage: StickerImage,

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package io.raemian.storage.db.core.emoji

import jakarta.persistence.Embeddable

@Embeddable
class StickerImage(
val stickerImage: String,
)

0 comments on commit 1e5f776

Please sign in to comment.