diff --git a/src/main/java/camp/woowak/lab/menu/domain/Menu.java b/src/main/java/camp/woowak/lab/menu/domain/Menu.java
index fa0d10b4..66b8d890 100644
--- a/src/main/java/camp/woowak/lab/menu/domain/Menu.java
+++ b/src/main/java/camp/woowak/lab/menu/domain/Menu.java
@@ -78,4 +78,13 @@ public long updatePrice(long uPrice) {
return this.price;
}
+
+ public Long getMenuCategoryId() {
+ return menuCategory.getId();
+ }
+
+ public String getMenuCategoryName() {
+ return menuCategory.getName();
+ }
+
}
diff --git a/src/main/java/camp/woowak/lab/menu/domain/MenuCategory.java b/src/main/java/camp/woowak/lab/menu/domain/MenuCategory.java
index 3f9b3e77..21c808f5 100644
--- a/src/main/java/camp/woowak/lab/menu/domain/MenuCategory.java
+++ b/src/main/java/camp/woowak/lab/menu/domain/MenuCategory.java
@@ -12,6 +12,7 @@
import jakarta.persistence.Table;
import jakarta.persistence.UniqueConstraint;
import lombok.AccessLevel;
+import lombok.Getter;
import lombok.NoArgsConstructor;
@Entity
@@ -22,6 +23,7 @@
@UniqueConstraint(name = "unique_store_name", columnNames = {"store_id", "name"})
}
)
+@Getter
public class MenuCategory {
@Id
@@ -41,8 +43,5 @@ public MenuCategory(Store store, String name) {
this.name = name;
}
- public Long getId() {
- return id;
- }
}
diff --git a/src/main/java/camp/woowak/lab/menu/repository/MenuRepository.java b/src/main/java/camp/woowak/lab/menu/repository/MenuRepository.java
index a1de78e7..7ee862bd 100644
--- a/src/main/java/camp/woowak/lab/menu/repository/MenuRepository.java
+++ b/src/main/java/camp/woowak/lab/menu/repository/MenuRepository.java
@@ -18,4 +18,6 @@ public interface MenuRepository extends JpaRepository