-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Category.class를 AbstractCodedEnumConverter에 전달하는 클래스 작성
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/main/java/com/ordertogether/team14_be/spot/converter/CategoryConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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를 부모 클래스에 전달 | ||
} | ||
} |