Skip to content

Commit

Permalink
fix: entity 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jaesungahn91 committed Oct 17, 2023
1 parent 0039f02 commit c5dfe29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import jakarta.persistence.GenerationType.IDENTITY

@Entity
class OrderEntity(
@JoinColumn(name = "order_id", referencedColumnName = "id")
@OneToMany(mappedBy = "order", cascade = [CascadeType.ALL])
val orderVariants: MutableList<OrderVariantEntity>,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class OrderVariantEntity(
@GeneratedValue(strategy = GenerationType.IDENTITY)
val id: Long? = null,

@JoinColumn(name = "order_id", referencedColumnName = "id")
@ManyToOne(fetch = LAZY)
val order: OrderEntity,

Expand Down

0 comments on commit c5dfe29

Please sign in to comment.