Skip to content

Commit

Permalink
Merge pull request #285 from GEON-PPANG/fix/#284
Browse files Browse the repository at this point in the history
[FIX] bakeryBreadType 테이블에 unique 제약조건 추가
  • Loading branch information
seunghaLim authored Feb 21, 2024
2 parents 1566c00 + d720715 commit 5ef6e41
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

@Entity
@Getter
@Table(
name = "bakeryBreadType",
uniqueConstraints = {
@UniqueConstraint(
name = "BAKERY_ID_BREAD_TYPE_ID_UNIQUE",
columnNames = {"bakery_id", "bread_type_id"})
})
public class BakeryBreadType {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down

0 comments on commit 5ef6e41

Please sign in to comment.