Skip to content

Commit

Permalink
feat: Category.class를 AbstractCodedEnumConverter에 전달하는 클래스 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
rbm0524 committed Nov 7, 2024
1 parent 3d1735a commit 09bb55f
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.ordertogether.team14_be.spot.converter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.ordertogether.team14_be.spot.enums.Category;

@Component
public class CategoryConverter extends AbstractCodedEnumConverter<Category, String> {

@Autowired
public CategoryConverter(Class<Category> clazz) {
super(clazz); // Category.class를 부모 클래스에 전달
}
}

0 comments on commit 09bb55f

Please sign in to comment.