diff --git a/src/main/java/com/moddy/server/domain/designer/repository/DesignerJpaRepository.java b/src/main/java/com/moddy/server/domain/designer/repository/DesignerJpaRepository.java index 0c0c58d9..02091670 100644 --- a/src/main/java/com/moddy/server/domain/designer/repository/DesignerJpaRepository.java +++ b/src/main/java/com/moddy/server/domain/designer/repository/DesignerJpaRepository.java @@ -11,7 +11,7 @@ public interface DesignerJpaRepository extends JpaRepository { @Modifying(clearAutomatically = true) - @Query(value = "insert into Designer (id, hair_shop_address, hair_shop_detail_address, hair_shop_name, instagram_url, naver_place_url, introduction, kakao_open_chat_url) VALUES (:id, :hairShopAddress, :hairShopDetailAddress, :hairShopName, :instagramUrl, :naverPlaceUrl, :introduction, :kakaoOpenChatUrl)", nativeQuery = true) + @Query(value = "insert into designer (id, hair_shop_address, hair_shop_detail_address, hair_shop_name, instagram_url, naver_place_url, introduction, kakao_open_chat_url) VALUES (:id, :hairShopAddress, :hairShopDetailAddress, :hairShopName, :instagramUrl, :naverPlaceUrl, :introduction, :kakaoOpenChatUrl)", nativeQuery = true) void designerRegister(@Param("id") Long id, @Param("hairShopAddress") String hairShopAddress, @Param("hairShopDetailAddress") String hairShopDetailAddress, @Param("hairShopName") String hairShopName, @Param("instagramUrl") String instagramUrl, @Param("naverPlaceUrl") String naverPlaceUrl, @Param("introduction") String introduction, @Param("kakaoOpenChatUrl") String kakaoOpenChatUrl); Optional findById(Long userId);