Skip to content

Commit

Permalink
NO-JIRA-refactor : @ValidEnum 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
born-A committed Nov 7, 2023
1 parent c032890 commit b478c14
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ public class Card extends BaseEntity {
@Column(name = "poke", nullable = false)
private Boolean poke;

@ValidEnum(enumClass = TradeType.class, message = "유효하지 않은 거래 방식입니다.")
@Enumerated(EnumType.STRING)
@Column(name = "trade_type", nullable = false)
private TradeType tradeType;

@ValidEnum(enumClass = CardStatus.class, message = "유효하지 않은 카드 상태입니다.")
@Enumerated(EnumType.STRING)
@Column(name = "status", nullable = false)
private CardStatus status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ public class Item extends BaseEntity {
@Column(name = "item_id", nullable = false)
private Long itemId;

@NotBlank(message = "공백을 허용하지 않습니다.")
@Column(name = "item_name", nullable = false)
private String itemName;

// @ValidEnum(enumClass = PriceRange.class, message = "유효하지 않은 가격대입니다.")
@Enumerated(EnumType.STRING)
@Column(name = "price_range", nullable = false)
private PriceRange priceRange;
Expand Down

0 comments on commit b478c14

Please sign in to comment.